﻿/* =====================================================
   BF Photography — Dark Glassmorphism Redesign
   Same design system as Project Networks · Anime.js · 2026
   ===================================================== */

/* =====================================================
   1. CSS VARIABLES
   ===================================================== */
:root {
  --c-bg:           #06060f;
  --c-surface:      #0e0e1c;
  --c-surface-2:    #161626;
  --c-surface-3:    #1e1e30;
  --c-border:       rgba(255,255,255,0.07);
  --c-border-hover: rgba(255,255,255,0.14);

  --c-purple:       #8b5cf6;
  --c-purple-light: #a78bfa;
  --c-purple-dark:  #7c3aed;
  --c-blue:         #6366f1;
  --c-blue-light:   #818cf8;
  --c-cyan:         #818cf8;
  --c-green:        #10b981;
  --c-amber:        #f59e0b;

  --g-primary:   linear-gradient(135deg, #8b5cf6, #6366f1);
  --g-primary-r: linear-gradient(135deg, #6366f1, #8b5cf6);
  --g-glow:      linear-gradient(135deg, rgba(139,92,246,0.15), rgba(99,102,241,0.15));
  --g-card:      linear-gradient(145deg, rgba(255,255,255,0.04), rgba(255,255,255,0.01));

  --t-primary: #ffffff;
  --t-muted:   rgba(255,255,255,0.7);
  --t-subtle:  rgba(255,255,255,0.45);

  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-head: 'Poppins', var(--font-sans);
  --font-mono: 'JetBrains Mono', 'Fira Code', monospace;

  --space-1: 0.25rem;  --space-2: 0.5rem;   --space-3: 0.75rem;
  --space-4: 1rem;     --space-5: 1.5rem;   --space-6: 2rem;
  --space-7: 2.5rem;   --space-8: 3rem;     --space-10: 5rem;
  --space-12: 6rem;    --space-16: 8rem;

  --r-sm: 6px;   --r-md: 12px;  --r-lg: 16px;
  --r-xl: 24px;  --r-2xl: 32px; --r-full: 9999px;

  --shadow-card:        0 8px 32px rgba(0,0,0,0.4);
  --shadow-glow-purple: 0 0 40px rgba(139,92,246,0.25);
  --shadow-glow-blue:   0 0 40px rgba(99,102,241,0.25);

  --ease:     cubic-bezier(0.4, 0, 0.2, 1);
  --ease-out: cubic-bezier(0, 0, 0.2, 1);
  --t-fast: 150ms var(--ease);
  --t-base: 300ms var(--ease);
  --t-slow: 500ms var(--ease);

  --nav-h: 76px;
  --max-w: 1280px;
}

/* =====================================================
   2. RESET & BASE
   ===================================================== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html {
  font-size: 16px;
  scroll-behavior: smooth;
  overflow-x: hidden; /* must be on html too — if only body has this, iOS makes body the scroll container which breaks window.scrollTo and momentum scroll */
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: var(--font-sans);
  background-color: var(--c-bg);
  color: var(--t-primary);
  line-height: 1.6;
  overflow-x: hidden;
}

a    { color: inherit; text-decoration: none; transition: color var(--t-base); }
a:hover { color: var(--c-purple-light); }
img  { max-width: 100%; height: auto; display: block; }
ul   { list-style: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; }

/* =====================================================
   3. BACKGROUND
   ===================================================== */
#particle-canvas {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  opacity: 0.6;
}

.noise-overlay {
  position: fixed;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  opacity: 0.025;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 400 400' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

.gradient-bg {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
}

.gradient-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(100px);
  opacity: 0;
}

.orb-1 { width: 700px; height: 700px; background: radial-gradient(circle, #8b5cf6 0%, transparent 70%); top: -250px; right: -200px; }
.orb-2 { width: 600px; height: 600px; background: radial-gradient(circle, #6366f1 0%, transparent 70%); bottom: -200px; left: -150px; }
.orb-3 { width: 500px; height: 500px; background: radial-gradient(circle, #a855f7 0%, transparent 70%); top: 40%; left: 40%; transform: translate(-50%,-50%); }

/* =====================================================
   4. PRELOADER
   ===================================================== */
#preloader {
  position: fixed;
  inset: 0;
  background: var(--c-bg);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10000;
  transition: opacity 0.6s var(--ease), visibility 0.6s;
  animation: preloaderCSSHide 0.6s 4s forwards;
}

@keyframes preloaderCSSHide {
  to { opacity: 0; visibility: hidden; pointer-events: none; }
}

#preloader.hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.preloader-content { text-align: center; }

.preloader-logo {
  font-family: var(--font-head);
  font-size: 4rem;
  font-weight: 800;
  line-height: 1;
  margin-bottom: var(--space-6);
  display: flex;
  gap: 4px;
  justify-content: center;
}

.preloader-logo span {
  background: var(--g-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  opacity: 0;
  transform: translateY(30px);
}

.preloader-track {
  width: 200px;
  height: 3px;
  background: var(--c-surface-3);
  border-radius: var(--r-full);
  margin: 0 auto var(--space-4);
  overflow: hidden;
}

.preloader-fill {
  height: 100%;
  width: 0%;
  background: var(--g-primary);
  border-radius: var(--r-full);
}

.preloader-label {
  font-size: 0.8125rem;
  color: var(--t-subtle);
  font-family: var(--font-mono);
  letter-spacing: 0.05em;
  opacity: 0;
}

/* =====================================================
   5. CONTAINER & LAYOUT
   ===================================================== */
.container {
  width: 100%;
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 var(--space-5);
  position: relative;
  z-index: 2;
}

section { position: relative; }

/* =====================================================
   6. NAVIGATION
   ===================================================== */
.main-nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  height: var(--nav-h);
  display: flex;
  align-items: center;
  transition: background var(--t-base), backdrop-filter var(--t-base), border-color var(--t-base);
  border-bottom: 1px solid transparent;
}

.main-nav.scrolled {
  background: rgba(6,6,15,0.85);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-color: var(--c-border);
}

.nav-container {
  width: 100%;
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 var(--space-5);
  display: flex;
  align-items: center;
  gap: var(--space-8);
  position: relative;
}

.logo {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  text-decoration: none;
  flex-shrink: 0;
}

.logo-icon {
  width: 38px; height: 38px;
  background: var(--g-primary);
  border-radius: var(--r-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-family: var(--font-head);
  font-size: 0.875rem;
  color: #fff;
}

.logo-icon-sm { width: 32px; height: 32px; font-size: 0.75rem; }

.logo-name {
  font-weight: 700;
  font-size: 1rem;
  font-family: var(--font-head);
  color: var(--t-primary);
}

.logo-tag {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 0.6875rem;
  font-weight: 600;
  padding: 2px 8px;
  background: rgba(139,92,246,0.15);
  border: 1px solid rgba(139,92,246,0.3);
  border-radius: var(--r-full);
  color: var(--c-purple-light);
  letter-spacing: 0.05em;
  text-transform: uppercase;
  cursor: pointer;
}

.dropdown-arrow { transition: transform var(--t-base); }
.logo-tag:hover .dropdown-arrow,
.photography-dropdown.active ~ * .dropdown-arrow { transform: rotate(180deg); }

/* Photography Dropdown */
.photography-dropdown {
  position: absolute;
  top: calc(var(--nav-h) - 8px);
  left: var(--space-5);
  background: rgba(14,14,28,0.95);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--c-border-hover);
  border-radius: var(--r-xl);
  padding: var(--space-3);
  min-width: 260px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-8px);
  transition: all var(--t-base);
  z-index: 1010;
  box-shadow: var(--shadow-card);
}

.photography-dropdown.active {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.dropdown-item {
  display: block;
  padding: var(--space-3);
  border-radius: var(--r-lg);
  transition: background var(--t-fast);
  text-decoration: none;
  color: var(--t-primary);
}

.dropdown-item:hover { background: rgba(139,92,246,0.08); }

.dropdown-item-content {
  display: flex;
  align-items: center;
  gap: var(--space-3);
}

.dropdown-icon {
  width: 40px; height: 40px;
  border-radius: var(--r-md);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.portfolio-icon { background: rgba(139,92,246,0.15); color: var(--c-purple); border: 1px solid rgba(139,92,246,0.25); }
.network-icon   { background: rgba(99,102,241,0.15);  color: var(--c-blue);   border: 1px solid rgba(99,102,241,0.25); }

.dropdown-title { font-weight: 600; font-size: 0.9rem; margin-bottom: 2px; }
.dropdown-description { font-size: 0.8rem; color: var(--t-subtle); }

.nav-links {
  display: flex;
  align-items: center;
  gap: var(--space-6);
  margin-left: auto;
  list-style: none;
}

.nav-link {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--t-muted);
  transition: color var(--t-base);
  position: relative;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: -4px; left: 0;
  width: 0%; height: 2px;
  background: var(--g-primary);
  border-radius: var(--r-full);
  transition: width var(--t-base);
}

.nav-link:hover,
.nav-link.active { color: var(--t-primary); }
.nav-link:hover::after,
.nav-link.active::after { width: 100%; }

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: var(--space-2);
}

.nav-toggle span {
  display: block;
  width: 22px; height: 2px;
  background: var(--t-muted);
  border-radius: var(--r-full);
  transition: var(--t-base);
}

.nav-toggle.active span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.active span:nth-child(2) { opacity: 0; }
.nav-toggle.active span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Groups cart + hamburger together on the right */
.nav-right {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  margin-left: auto;
  flex-shrink: 0;
}

/* Nav Cart Button */
.nav-cart-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  width: 40px; height: 40px;
  background: rgba(139,92,246,0.1);
  border: 1px solid rgba(139,92,246,0.25);
  border-radius: var(--r-md);
  color: var(--c-purple-light);
  cursor: pointer;
  transition: all var(--t-base);
  flex-shrink: 0;
}
.nav-cart-btn:hover {
  background: rgba(139,92,246,0.2);
  border-color: rgba(139,92,246,0.45);
  color: #fff;
}

.cart-badge {
  position: absolute;
  top: -6px; right: -6px;
  min-width: 18px; height: 18px;
  background: var(--g-primary);
  color: #fff;
  font-size: 0.65rem;
  font-weight: 700;
  border-radius: var(--r-full);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 4px;
  box-shadow: 0 2px 8px rgba(139,92,246,0.5);
}

/* =====================================================
   7. BUTTONS
   ===================================================== */
.btn {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  padding: 10px 22px;
  border-radius: var(--r-md);
  font-weight: 600;
  font-size: 0.9rem;
  font-family: var(--font-sans);
  cursor: pointer;
  transition: all var(--t-base);
  text-decoration: none;
  white-space: nowrap;
  position: relative;
  overflow: hidden;
}

.btn-primary {
  background: var(--g-primary);
  color: #fff;
  border: none;
  box-shadow: 0 4px 15px rgba(139,92,246,0.3);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 8px 25px rgba(139,92,246,0.4); color: #fff; }

.btn-glow { box-shadow: 0 0 20px rgba(139,92,246,0.4), 0 4px 15px rgba(139,92,246,0.3); }
.btn-glow:hover { box-shadow: 0 0 30px rgba(139,92,246,0.6), 0 8px 25px rgba(139,92,246,0.4); }

.btn-ghost {
  background: transparent;
  color: var(--t-muted);
  border: 1px solid var(--c-border-hover);
}
.btn-ghost:hover { color: var(--t-primary); border-color: rgba(139,92,246,0.4); background: rgba(139,92,246,0.08); }

.btn-lg { padding: 13px 28px; font-size: 1rem; }

/* Lightbox action buttons */
.lightbox-action-btn {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  padding: 8px 16px;
  border-radius: var(--r-md);
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--t-muted);
  background: rgba(255,255,255,0.06);
  border: 1px solid var(--c-border);
  cursor: pointer;
  transition: all var(--t-base);
}

.lightbox-action-btn:hover { color: var(--t-primary); background: rgba(139,92,246,0.15); border-color: rgba(139,92,246,0.3); }

/* Album share button (inside section title) */
.album-share-btn {
  display: inline-flex;
  align-items: center;
  margin-left: var(--space-3);
  padding: 6px;
  color: var(--t-muted);
  background: transparent;
  border: none;
  cursor: pointer;
  vertical-align: middle;
  transition: color var(--t-base);
}
.album-share-btn:hover { color: var(--c-purple); }

/* =====================================================
   8. SECTION COMMONS
   ===================================================== */
.section-header {
  text-align: center;
  margin-bottom: var(--space-10);
}

.section-label {
  display: inline-block;
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--c-purple);
  margin-bottom: var(--space-3);
  font-family: var(--font-mono);
}

.section-title {
  font-family: var(--font-head);
  font-size: clamp(1.75rem, 4vw, 2.75rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.15;
  margin-bottom: var(--space-4);
  background: var(--g-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.section-desc {
  font-size: 1.0625rem;
  color: var(--t-muted);
  max-width: 520px;
  margin: 0 auto;
  line-height: 1.7;
}

.reveal-section { opacity: 0; transform: translateY(30px); transition: opacity 0.7s var(--ease-out), transform 0.7s var(--ease-out); }
.reveal-section.revealed { opacity: 1; transform: translateY(0); }

/* =====================================================
   9. HERO
   ===================================================== */
.hero-section {
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: calc(var(--nav-h) + var(--space-12)) 0 var(--space-12);
  position: relative;
}

.hero-inner { display: flex; align-items: center; }
.hero-text-block { max-width: 680px; }

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  padding: 6px 16px;
  background: rgba(139,92,246,0.1);
  border: 1px solid rgba(139,92,246,0.25);
  border-radius: var(--r-full);
  font-size: 0.8125rem;
  font-weight: 500;
  color: var(--c-purple-light);
  margin-bottom: var(--space-5);
  opacity: 0;
}

.hero-title {
  font-family: var(--font-head);
  font-weight: 900;
  line-height: 1.05;
  letter-spacing: -0.03em;
  margin-bottom: var(--space-5);
}

.hero-line-1 {
  display: block;
  font-size: clamp(1.75rem, 4vw, 2.75rem);
  color: var(--t-muted);
  opacity: 0;
}

.hero-line-2 {
  display: block;
  font-size: clamp(2.5rem, 7vw, 5.5rem);
  /* opacity:0 hides raw text during preloader so it can't flash through */
  opacity: 0;
}

.hero-line-2 .char {
  display: inline-block;
  opacity: 0;
  transform: translateY(60px) rotateX(-90deg);
  /* Gradient applied per-char avoids the non-Firefox background-clip:text + opacity:0 bug */
  background: var(--g-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  /* Fallback: if Anime.js hasn't run after 5s, fade the chars in via CSS */
  animation: charFallback 0.5s var(--ease-out) 5s forwards;
}

@keyframes charFallback {
  to { opacity: 1; transform: none; }
}

.hero-sub { font-size: clamp(1rem, 2vw, 1.2rem); font-weight: 500; color: var(--t-muted); margin-bottom: var(--space-4); opacity: 0; }
.hero-desc { font-size: 1.0625rem; color: var(--t-subtle); line-height: 1.75; max-width: 540px; margin-bottom: var(--space-6); opacity: 0; }

.hero-actions { display: flex; gap: var(--space-4); flex-wrap: wrap; margin-bottom: var(--space-8); opacity: 0; }

.hero-stats { display: flex; align-items: center; gap: var(--space-6); opacity: 0; }
.hstat { text-align: center; }

.hstat-num {
  font-family: var(--font-head);
  font-size: 1.75rem;
  font-weight: 800;
  background: var(--g-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hstat-suffix {
  font-family: var(--font-head);
  font-size: 1.25rem;
  font-weight: 800;
  background: var(--g-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hstat-label { display: block; font-size: 0.8125rem; color: var(--t-subtle); margin-top: 2px; }
.hstat-divider { width: 1px; height: 40px; background: var(--c-border); }

.hero-scroll {
  position: absolute;
  bottom: var(--space-8);
  left: 50%;
  transform: translateX(-50%);
}

.hero-scroll-dot {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--c-purple);
  animation: scrollBounce 2s ease-in-out infinite;
}

@keyframes scrollBounce {
  0%, 100% { transform: translateY(0); opacity: 0.6; }
  50%       { transform: translateY(8px); opacity: 1; }
}

/* =====================================================
   10. PHOTO GRID & CARDS
   ===================================================== */
.featured-section { padding: var(--space-16) 0; }

/* Grid layout — items fill left-to-right, top-to-bottom across columns */
.photo-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-5);
  align-items: start;
}

.photo-card {
  position: relative;
  border-radius: var(--r-xl);
  overflow: hidden;
  cursor: pointer;
  transition: transform var(--t-base), box-shadow var(--t-base);
  border: 1px solid var(--c-border);
  background: var(--c-surface);
  width: 100%;
  content-visibility: auto;
  contain-intrinsic-size: 0 280px;
}

.photo-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-card), var(--shadow-glow-purple); }

/* Photo wrapper: provides a visible area for the loading spinner */
.photo-wrapper {
  position: relative;
  overflow: hidden;
  min-height: 160px;
  background: rgba(255, 255, 255, 0.04);
}

/* Loading spinner shown while image is fetching */
.photo-card-loader {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 4;
  pointer-events: none;
  transition: opacity 0.25s ease;
}

.photo-wrapper.photo-loaded .photo-card-loader { opacity: 0; }

.photo-card-spinner {
  width: 28px;
  height: 28px;
  border: 2px solid rgba(139, 92, 246, 0.25);
  border-top-color: var(--c-purple);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

.photo-wrapper img {
  width: 100%; height: auto;
  display: block;
  transition: transform var(--t-slow), opacity 0.35s ease;
  -webkit-user-drag: none;
  user-select: none;
  opacity: 0;
}

.photo-wrapper.photo-loaded img { opacity: 1; }

.photo-card:hover .photo-wrapper img { transform: scale(1.07); }

/* Portrait photos: anchor to top so the subject isn't cropped away */
.photo-wrapper img.portrait-thumb { object-position: top center; }

/* Watermark overlay on cards — tiling diagonal repeat across the whole image */
.photo-watermark {
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
  user-select: none;
  z-index: 3;
}

/* The ::after is 200%×200% so rotation never leaves bare corners */
.photo-watermark::after {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background-image: url("data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg' width='160' height='52'><text x='80' y='34' fill='white' fill-opacity='0.3' font-family='system-ui,-apple-system,sans-serif' font-size='13' font-weight='800' text-anchor='middle' letter-spacing='4'>KAGESNAPS</text></svg>");
  background-repeat: repeat;
  background-size: 160px 52px;
  transform: rotate(-22deg);
}

.photo-protection-overlay {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 2;
  background: transparent;
}

.photo-card-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(6,6,15,0.9) 0%, rgba(6,6,15,0.3) 50%, transparent 80%);
  padding: var(--space-5);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  opacity: 0;
  transition: opacity var(--t-base);
}

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

.photo-card-title { font-family: var(--font-head); font-weight: 700; font-size: 1rem; margin-bottom: var(--space-1); }
.photo-card-description { font-size: 0.85rem; color: var(--t-muted); line-height: 1.5; margin-bottom: var(--space-3); }

.photo-share-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px; height: 36px;
  background: rgba(139,92,246,0.15);
  border: 1px solid rgba(139,92,246,0.3);
  border-radius: var(--r-md);
  color: var(--c-purple-light);
  cursor: pointer;
  transition: all var(--t-fast);
  align-self: flex-end;
}
.photo-share-btn:hover { background: rgba(139,92,246,0.3); }

/* =====================================================
   11. ALBUMS GRID & CARDS
   ===================================================== */
.albums-section { padding: var(--space-16) 0; }

.albums-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-6);
}

.album-card {
  background: var(--g-card);
  border: 1px solid var(--c-border);
  border-radius: var(--r-2xl);
  overflow: hidden;
  cursor: pointer;
  transition: border-color var(--t-base), box-shadow var(--t-base), transform var(--t-base);
}

.album-card:hover {
  border-color: rgba(139,92,246,0.25);
  box-shadow: var(--shadow-card), var(--shadow-glow-purple);
  transform: translateY(-4px);
}

.album-image {
  position: relative;
  aspect-ratio: 16/9;
  overflow: hidden;
  background: var(--c-surface-2);
}

.album-image img { width: 100%; height: 100%; object-fit: cover; transition: transform var(--t-slow); }
.album-card:hover .album-image img { transform: scale(1.06); }

.album-badge {
  position: absolute;
  bottom: var(--space-3);
  right: var(--space-3);
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 12px;
  background: rgba(139,92,246,0.2);
  border: 1px solid rgba(139,92,246,0.35);
  border-radius: var(--r-full);
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--c-purple-light);
  backdrop-filter: blur(8px);
}

.album-content { padding: var(--space-5) var(--space-6) var(--space-6); }

.album-title { font-family: var(--font-head); font-size: 1.2rem; font-weight: 700; margin-bottom: var(--space-2); }
.album-description { font-size: 0.9rem; color: var(--t-muted); line-height: 1.65; margin-bottom: var(--space-3); }
.album-meta { font-size: 0.8125rem; color: var(--t-subtle); font-family: var(--font-mono); }

/* Album view navigation */
.album-navigation { margin-bottom: var(--space-6); }

.album-back-btn {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  padding: 8px 18px;
  background: rgba(139,92,246,0.1);
  border: 1px solid rgba(139,92,246,0.25);
  border-radius: var(--r-md);
  color: var(--c-purple-light);
  font-weight: 600;
  font-size: 0.9rem;
  cursor: pointer;
  transition: all var(--t-base);
}
.album-back-btn:hover { background: rgba(139,92,246,0.2); border-color: rgba(139,92,246,0.4); }

#album-load-more-wrap {
  text-align: center;
  padding: 2rem 0 0.5rem;
}
.album-load-more-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 32px;
  background: rgba(139,92,246,0.12);
  border: 1px solid rgba(139,92,246,0.35);
  border-radius: var(--r-md);
  color: var(--c-purple-light);
  font-weight: 600;
  font-size: 0.95rem;
  cursor: pointer;
  transition: all var(--t-base);
}
.album-load-more-btn:hover {
  background: rgba(139,92,246,0.22);
  border-color: rgba(139,92,246,0.55);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(139,92,246,0.2);
}
.album-load-more-btn svg { transition: transform var(--t-base); }
.album-load-more-btn:hover svg { transform: translateY(2px); }
.album-load-more-count {
  font-size: 0.8rem;
  opacity: 0.6;
  font-weight: 400;
}

/* =====================================================
   12. ABOUT SECTION
   ===================================================== */
.about-section { padding: var(--space-16) 0; }

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-12);
  align-items: center;
}

.about-content .section-label { display: block; margin-bottom: var(--space-3); text-align: left; }
.about-content .section-title { -webkit-text-fill-color: initial; color: var(--t-primary); background: none; text-align: left; margin-bottom: var(--space-5); }

.about-text p { color: var(--t-muted); line-height: 1.8; margin-bottom: var(--space-4); }

.feature-list {
  margin: var(--space-6) 0;
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
}

.feature-item {
  display: flex;
  align-items: flex-start;
  gap: var(--space-4);
  padding: var(--space-4);
  background: var(--g-card);
  border: 1px solid var(--c-border);
  border-radius: var(--r-lg);
  transition: border-color var(--t-base), background var(--t-base);
}

.feature-item:hover { border-color: rgba(139,92,246,0.25); background: rgba(139,92,246,0.04); }

.feature-icon {
  width: 40px; height: 40px;
  background: rgba(139,92,246,0.1);
  border: 1px solid rgba(139,92,246,0.2);
  border-radius: var(--r-md);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--c-purple);
  flex-shrink: 0;
}

.feature-body h4 { font-weight: 600; font-size: 0.9375rem; margin-bottom: 2px; }
.feature-body p { font-size: 0.875rem; color: var(--t-subtle); }

.about-image-col { position: relative; }

.about-img-frame {
  border-radius: var(--r-2xl);
  overflow: hidden;
  border: 1px solid var(--c-border);
  box-shadow: var(--shadow-card);
}

.about-img-frame img { width: 100%; aspect-ratio: 4/3; object-fit: cover; }

/* =====================================================
   13. NETWORK (SISTER SITES)
   ===================================================== */
.sister-sites-section { padding: var(--space-16) 0; }

.card-grid.project-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-6);
  max-width: 900px;
  margin: 0 auto;
}

.pcard {
  background: var(--g-card);
  border: 1px solid var(--c-border);
  border-radius: var(--r-2xl);
  overflow: hidden;
  transition: border-color var(--t-base), box-shadow var(--t-base), transform var(--t-base);
  opacity: 0;
}

.pcard:hover {
  border-color: rgba(139,92,246,0.25);
  box-shadow: var(--shadow-card), var(--shadow-glow-purple);
  transform: translateY(-4px);
}

.pcard.visible { opacity: 1; }

.pcard-img {
  position: relative;
  aspect-ratio: 16/9;
  overflow: hidden;
  background: var(--c-surface-2);
}

.pcard-img img { width: 100%; height: 100%; object-fit: cover; transition: transform var(--t-slow); }
.pcard:hover .pcard-img img { transform: scale(1.06); }

.pcard-badge {
  position: absolute;
  top: var(--space-4);
  right: var(--space-4);
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 12px;
  background: rgba(16,185,129,0.15);
  border: 1px solid rgba(16,185,129,0.3);
  border-radius: var(--r-full);
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--c-green);
}

.live-dot {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--c-green);
  animation: livePulse 2s ease-in-out infinite;
}

@keyframes livePulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50%       { opacity: 0.5; transform: scale(1.4); }
}

.pcard-body {
  padding: var(--space-5) var(--space-6) var(--space-6);
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
}

.pcard-title { font-family: var(--font-head); font-size: 1.1875rem; font-weight: 700; }
.pcard-desc { font-size: 0.9rem; color: var(--t-muted); line-height: 1.65; }

.pcard-tags { display: flex; gap: var(--space-2); flex-wrap: wrap; }

.tag {
  font-size: 0.75rem;
  font-weight: 500;
  padding: 3px 10px;
  background: rgba(139,92,246,0.1);
  border: 1px solid rgba(139,92,246,0.2);
  border-radius: var(--r-full);
  color: var(--c-purple-light);
}

.pcard-footer { margin-top: auto; }

/* =====================================================
   14. FOOTER
   ===================================================== */
.main-footer {
  border-top: 1px solid var(--c-border);
  padding: var(--space-10) 0 var(--space-8);
  position: relative;
  z-index: 2;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: var(--space-8);
  margin-bottom: var(--space-8);
}

.footer-logo-row { display: flex; align-items: center; gap: var(--space-2); margin-bottom: var(--space-4); }
.footer-tagline { font-size: 0.9rem; color: var(--t-subtle); line-height: 1.6; max-width: 260px; }

.footer-heading {
  font-family: var(--font-head);
  font-size: 0.875rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--t-muted);
  margin-bottom: var(--space-4);
}

.footer-links { display: flex; flex-direction: column; gap: var(--space-3); }
.footer-links li a { font-size: 0.9rem; color: var(--t-subtle); transition: color var(--t-base); }
.footer-links li a:hover { color: var(--c-purple-light); }

.footer-contact-list { display: flex; flex-direction: column; gap: var(--space-3); }
.footer-contact-list li { display: flex; align-items: center; gap: var(--space-2); font-size: 0.875rem; color: var(--t-subtle); }
.footer-contact-list li a { color: var(--t-subtle); transition: color var(--t-base); }
.footer-contact-list li a:hover { color: var(--c-purple-light); }
.footer-contact-list li svg { color: var(--c-purple); flex-shrink: 0; }

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: var(--space-6);
  border-top: 1px solid var(--c-border);
  flex-wrap: wrap;
  gap: var(--space-4);
}

.footer-copy { font-size: 0.875rem; color: var(--t-subtle); }
.footer-legal { display: flex; align-items: center; gap: var(--space-3); font-size: 0.875rem; }
.footer-legal a { color: var(--t-subtle); transition: color var(--t-base); }
.footer-legal a:hover { color: var(--c-purple-light); }
.footer-sep { color: var(--t-subtle); }

/* =====================================================
   15. BACK TO TOP
   ===================================================== */
.back-to-top {
  position: fixed;
  bottom: var(--space-6);
  right: var(--space-6);
  width: 44px; height: 44px;
  background: var(--g-primary);
  border-radius: var(--r-md);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  box-shadow: 0 4px 20px rgba(139,92,246,0.4);
  transition: all var(--t-base);
  opacity: 0;
  transform: translateY(10px);
  pointer-events: none;
  z-index: 900;
  border: none;
  cursor: pointer;
}

.back-to-top.visible { opacity: 1; transform: translateY(0); pointer-events: auto; }
.back-to-top:hover { transform: translateY(-3px); box-shadow: 0 8px 30px rgba(139,92,246,0.5); }

/* =====================================================
   16. LIGHTBOX
   ===================================================== */
.lightbox {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.93);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 5000;
  opacity: 0;
  visibility: hidden;
  transition: all var(--t-base);
}

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

.lightbox-close {
  position: fixed;
  top: var(--space-5);
  right: var(--space-5);
  width: 44px; height: 44px;
  background: rgba(255,255,255,0.08);
  border: 1px solid var(--c-border);
  border-radius: var(--r-md);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--t-muted);
  cursor: pointer;
  transition: all var(--t-base);
  z-index: 10;
}

.lightbox-close:hover { color: var(--t-primary); background: rgba(255,255,255,0.15); }

.lightbox-prev,
.lightbox-next {
  position: fixed;
  top: 50%;
  transform: translateY(-50%);
  width: 50px; height: 50px;
  background: rgba(255,255,255,0.08);
  border: 1px solid var(--c-border);
  border-radius: var(--r-lg);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--t-muted);
  cursor: pointer;
  transition: all var(--t-base);
  z-index: 10;
}

.lightbox-prev { left: var(--space-5); }
.lightbox-next { right: var(--space-5); }

.lightbox-prev:hover,
.lightbox-next:hover { color: var(--t-primary); background: rgba(139,92,246,0.2); border-color: rgba(139,92,246,0.35); }

.lightbox-content {
  max-width: 90vw;
  max-height: 90vh;
  /* Width and height are driven by the image — no fixed dimensions */
  width: auto;
  min-width: 500px;
  display: flex;
  flex-direction: row;
  align-items: flex-start; /* don't stretch items — each sizes to its own content */
  gap: 0;
  border-radius: var(--r-2xl);
  overflow: hidden;
  background: var(--c-surface);
  border: 1px solid var(--c-border);
  transition: max-width 200ms ease;
}

/* Portrait mode: inherits max-width:90vw from .lightbox-content — no extra cap needed.
   A fixed cap (e.g. 900px) would swallow the 300px info panel when the image alone is >600px. */

.lightbox-image-wrapper {
  position: relative;
  flex: 0 0 auto;              /* size by content only — never expands beyond the image */
  max-width: calc(90vw - 300px);
  max-height: 86vh;
  overflow: hidden;
  background: #000;
  display: flex;
  align-items: center;
  justify-content: center;
}

.lightbox-image-wrapper img {
  /* Viewport-relative max dimensions work without any parent height/width being defined */
  max-height: 86vh;
  max-width: calc(90vw - 300px);
  width: auto;
  height: auto;
  display: block;
  user-select: none;
  -webkit-user-drag: none;
}

/* Portrait images: constrain by height first so they fill vertically */
.lightbox-image-wrapper img.portrait-img {
  height: 86vh;
  width: auto;
  max-width: calc(90vw - 300px);
}

.lightbox-image-wrapper .photo-watermark::after {
  background-image: url("data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg' width='200' height='68'><text x='100' y='44' fill='white' fill-opacity='0.28' font-family='system-ui,-apple-system,sans-serif' font-size='16' font-weight='800' text-anchor='middle' letter-spacing='5'>KAGESNAPS</text></svg>");
  background-size: 200px 68px;
}

.lightbox-info {
  background: var(--c-surface);
  border-left: 1px solid var(--c-border);
  width: 300px;
  flex-shrink: 0;
  max-height: 86vh;
  padding: var(--space-6);
  display: flex;
  flex-direction: column;
  overflow-y: auto;
}

.lightbox-info-header {
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
  flex: 1;
}

.lightbox-album-context {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  font-size: 0.8125rem;
  color: var(--t-subtle);
  margin-bottom: var(--space-2);
  font-family: var(--font-mono);
}

.lightbox-info #lightbox-title { font-family: var(--font-head); font-size: 1.1rem; font-weight: 700; margin-bottom: var(--space-1); }
.lightbox-info #lightbox-description { font-size: 0.9rem; color: var(--t-muted); margin-bottom: var(--space-3); }

/* Detail pills: location / date / bike */
.photo-detail-pills {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
  margin-top: var(--space-2);
  margin-bottom: var(--space-4);
}

.detail-pill {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  padding: 5px 12px;
  border-radius: var(--r-full);
  font-size: 0.8rem;
  font-weight: 500;
  background: rgba(255,255,255,0.05);
  border: 1px solid var(--c-border-hover);
  color: var(--t-muted);
  width: fit-content;
}

.detail-pill svg { flex-shrink: 0; color: var(--c-purple); }

.lightbox-actions { display: flex; gap: var(--space-2); flex-shrink: 0; flex-wrap: wrap; margin-top: auto; }

/* =====================================================
   17. SHARE NOTIFICATION
   ===================================================== */
.share-notification {
  position: fixed;
  bottom: var(--space-6);
  left: 50%;
  transform: translateX(-50%) translateY(80px);
  background: rgba(14,14,28,0.95);
  border: 1px solid rgba(139,92,246,0.35);
  border-radius: var(--r-xl);
  padding: 12px 20px;
  display: flex;
  align-items: center;
  gap: var(--space-3);
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--c-purple-light);
  box-shadow: var(--shadow-card), var(--shadow-glow-purple);
  z-index: 6000;
  transition: transform 0.3s var(--ease), opacity 0.3s var(--ease);
  opacity: 0;
  backdrop-filter: blur(10px);
}

.share-notification.show { transform: translateX(-50%) translateY(0); opacity: 1; }
.share-notification svg { color: var(--c-green); }

/* =====================================================
   SUCCESS OVERLAY
   ===================================================== */

@keyframes success-ring-pulse {
  0%, 100% { transform: scale(1);   opacity: 0.5; }
  50%       { transform: scale(1.25); opacity: 0; }
}
@keyframes success-check-pop {
  0%   { transform: scale(0) rotate(-15deg); opacity: 0; }
  65%  { transform: scale(1.1) rotate(3deg); opacity: 1; }
  100% { transform: scale(1)   rotate(0deg); opacity: 1; }
}
@keyframes success-fade-up {
  from { opacity: 0; transform: translateY(16px); }
  to   { opacity: 1; transform: translateY(0); }
}

.success-overlay {
  position: fixed;
  inset: 0;
  z-index: 7000;
  background: rgba(6,6,15,0.88);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--space-6);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.4s var(--ease), visibility 0.4s var(--ease);
  overflow-y: auto;
}
.success-overlay.active { opacity: 1; visibility: visible; }

.success-content {
  background: var(--c-surface);
  border: 1px solid var(--c-border);
  border-radius: var(--r-2xl);
  padding: var(--space-10) var(--space-8);
  max-width: 780px;
  width: 100%;
  text-align: center;
  box-shadow: var(--shadow-card), 0 0 80px rgba(139,92,246,0.12);
  position: relative;
  overflow: hidden;
}

/* Subtle top glow bar */
.success-content::before {
  content: '';
  position: absolute;
  top: 0; left: 50%;
  transform: translateX(-50%);
  width: 60%;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(139,92,246,0.8), transparent);
}

/* Animated check icon */
.success-check-wrap {
  position: relative;
  width: 90px; height: 90px;
  margin: 0 auto var(--space-6);
  display: flex;
  align-items: center;
  justify-content: center;
}

.success-check-ring {
  position: absolute;
  inset: -8px;
  border-radius: 50%;
  border: 2px solid rgba(139,92,246,0.45);
  animation: success-ring-pulse 2.4s ease-out 0.4s infinite;
}

.success-check-icon {
  width: 90px; height: 90px;
  border-radius: 50%;
  background: linear-gradient(135deg, rgba(139,92,246,0.22), rgba(99,102,241,0.14));
  border: 1px solid rgba(139,92,246,0.4);
  box-shadow: 0 0 30px rgba(139,92,246,0.22), inset 0 1px 0 rgba(255,255,255,0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--c-purple-light);
  animation: success-check-pop 0.5s var(--ease-out) both;
}

.success-title {
  font-family: var(--font-head);
  font-size: 2rem;
  font-weight: 800;
  margin-bottom: var(--space-2);
  background: linear-gradient(135deg, #fff 40%, var(--c-purple-light));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: success-fade-up 0.5s var(--ease-out) 0.15s both;
}

.success-subtitle {
  color: var(--t-muted);
  font-size: 1.05rem;
  margin-bottom: var(--space-5);
  animation: success-fade-up 0.5s var(--ease-out) 0.22s both;
}

/* Email confirmation notice */
.success-email-notice {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  background: rgba(139,92,246,0.08);
  border: 1px solid rgba(139,92,246,0.22);
  border-radius: var(--r-full);
  padding: 8px var(--space-4);
  font-size: 0.84rem;
  color: var(--c-purple-light);
  margin-bottom: var(--space-7);
  animation: success-fade-up 0.5s var(--ease-out) 0.3s both;
}
.success-email-notice svg { flex-shrink: 0; opacity: 0.9; }

/* Photo grid */
.success-photos-grid {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-3);
  justify-content: center;
  margin-bottom: var(--space-8);
  animation: success-fade-up 0.5s var(--ease-out) 0.38s both;
}

.success-photo-item {
  flex: 0 0 auto;
  width: 150px;
  text-align: center;
}

.success-photo-thumb {
  border-radius: var(--r-lg);
  overflow: hidden;
  border: 1px solid var(--c-border);
  margin-bottom: var(--space-2);
  background: var(--c-surface-2);
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 90px;
  transition: border-color var(--t-base);
}

.success-photo-thumb:hover { border-color: var(--c-border-hover); }

.success-photo-thumb img {
  width: 100%;
  height: auto;
  max-height: 210px;
  object-fit: contain;
  display: block;
}

.success-photo-title {
  font-size: 0.78rem;
  color: var(--t-subtle);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Action buttons */
.success-actions {
  display: flex;
  gap: var(--space-3);
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  animation: success-fade-up 0.5s var(--ease-out) 0.45s both;
}

/* Toast Notification (persistent element, toggled with .visible) */
.toast-notification {
  position: fixed;
  bottom: var(--space-6);
  right: var(--space-6);
  transform: translateY(80px);
  background: rgba(14,14,28,0.95);
  border: 1px solid rgba(139,92,246,0.35);
  border-radius: var(--r-xl);
  padding: 12px 20px;
  display: flex;
  align-items: center;
  gap: var(--space-3);
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--c-purple-light);
  box-shadow: var(--shadow-card), var(--shadow-glow-purple);
  z-index: 6000;
  transition: transform 0.3s var(--ease), opacity 0.3s var(--ease);
  opacity: 0;
  pointer-events: none;
  backdrop-filter: blur(10px);
}
.toast-notification.visible { transform: translateY(0); opacity: 1; }
.toast-notification svg { color: var(--c-green); flex-shrink: 0; }

/* =====================================================
   18. LOADING STATE
   ===================================================== */
.loading-state {
  grid-column: 1 / -1;
  text-align: center;
  padding: var(--space-12) var(--space-4);
  color: var(--t-subtle);
}

.spinner {
  width: 40px; height: 40px;
  border: 3px solid var(--c-surface-3);
  border-top-color: var(--c-purple);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
  margin: 0 auto var(--space-4);
}

@keyframes spin { to { transform: rotate(360deg); } }

/* =====================================================
   19. RESPONSIVE
   ===================================================== */
@media (max-width: 1024px) {
  .photo-grid { grid-template-columns: repeat(2, 1fr); }
  .about-grid { grid-template-columns: 1fr; gap: var(--space-8); }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: var(--space-6); }
  .card-grid.project-grid { grid-template-columns: 1fr; max-width: 500px; margin-left: auto; margin-right: auto; }
}

@media (max-width: 768px) {
  /* Navigation */
  .nav-links {
    display: none;
    flex-direction: column;
    position: absolute;
    top: var(--nav-h);
    left: 0; right: 0;
    background: rgba(6,6,15,0.97);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    padding: var(--space-5);
    gap: var(--space-4);
    border-bottom: 1px solid var(--c-border);
    list-style: none;
    z-index: 999;
  }
  .nav-links.open { display: flex; }
  .nav-toggle { display: flex; }

  /* Hero */
  .hero-section {
    padding: calc(var(--nav-h) + var(--space-8)) 0 var(--space-8);
    min-height: auto;
  }
  .hero-text-block { max-width: 100%; }
  .hero-line-1 { font-size: clamp(1.25rem, 5vw, 1.75rem); }
  .hero-line-2 { font-size: clamp(2.25rem, 11vw, 4rem); }
  .hero-desc { font-size: 0.9375rem; }
  .hero-actions { flex-direction: column; align-items: flex-start; gap: var(--space-3); }
  .hero-actions .btn { width: 100%; justify-content: center; }

  /* Hero stats — centered row */
  .hero-stats {
    gap: var(--space-5);
    justify-content: center;
    flex-wrap: wrap;
  }
  .hstat { min-width: 70px; }

  /* Grids */
  .photo-grid { grid-template-columns: 1fr; }
  .albums-grid { grid-template-columns: 1fr; }

  /* Footer */
  .footer-grid { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; text-align: center; gap: var(--space-3); }

  /* Lightbox */
  .lightbox-content {
    flex-direction: column;
    width: 100vw;
    max-width: 100vw;
    max-height: 100dvh;
    min-width: 0;
    border-radius: 0;
    margin: 0;
    overflow-y: auto;
    align-items: stretch;
  }
  .lightbox-image-wrapper { flex: 0 0 auto; max-height: 55dvh; max-width: 100vw; }
  .lightbox-image-wrapper img { max-height: 55dvh; max-width: 100vw; width: auto; height: auto; }
  .lightbox-image-wrapper img.portrait-img { height: 55dvh; width: auto; max-width: 100vw; }
  .lightbox-info {
    flex: 1;
    max-height: none;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    border-left: none;
    border-top: 1px solid var(--c-border);
    padding: var(--space-5);
  }
  .lightbox-info-header { flex-direction: column; gap: var(--space-4); }
  .lightbox-actions { flex-wrap: wrap; gap: var(--space-2); }
  .lightbox-actions .lightbox-action-btn { flex: 1; justify-content: center; min-width: 100px; }
  .lightbox-prev { left: var(--space-3); }
  .lightbox-next { right: var(--space-3); }

  /* Detail pills */
  .photo-detail-pills { justify-content: flex-start; }
}

@media (max-width: 480px) {
  .preloader-logo { font-size: 3rem; }

  /* Stats: compact column centered */
  .hero-stats {
    flex-direction: row;
    align-items: center;
    justify-content: center;
    gap: var(--space-5);
    flex-wrap: wrap;
  }
  .hstat { text-align: center; min-width: 60px; }
  .hstat-num { font-size: 1.5rem; }
  .hstat-divider { width: 1px; height: 36px; }

  /* Hero: ensure both lines are visible */
  .hero-section { padding-top: calc(var(--nav-h) + var(--space-6)); }
  .hero-title { margin-bottom: var(--space-4); }
  .hero-line-1 { font-size: 1.2rem; }
  .hero-line-2 { font-size: clamp(2rem, 12vw, 3.5rem); }

  /* Allow chars to show even before animation (fallback) */
  .hero-line-2 .char { display: inline-block; }

  /* Buttons */
  .btn-lg { padding: 12px 22px; font-size: 0.95rem; }

  /* Section */
  .section-title { font-size: clamp(1.5rem, 7vw, 2.5rem); }
}

/* =====================================================
   20. CART SIDEBAR
   ===================================================== */

/* Cart overlay & panel */
.cart-sidebar {
  position: fixed;
  inset: 0;
  z-index: 7000;
  pointer-events: none;
  opacity: 0;
  visibility: hidden;
  transition: opacity var(--t-base), visibility var(--t-base);
}
.cart-sidebar.open {
  pointer-events: auto;
  opacity: 1;
  visibility: visible;
}

.cart-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.6);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  cursor: pointer;
}

.cart-panel {
  position: absolute;
  top: 0; right: 0;
  width: min(420px, 100vw);
  height: 100%;
  background: var(--c-surface);
  border-left: 1px solid var(--c-border);
  display: flex;
  flex-direction: column;
  transform: translateX(100%);
  transition: transform var(--t-slow);
  overflow: hidden;
}
.cart-sidebar.open .cart-panel { transform: translateX(0); }

.cart-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--space-5) var(--space-6);
  border-bottom: 1px solid var(--c-border);
  flex-shrink: 0;
}

.cart-title {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  font-family: var(--font-head);
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--t-primary);
}

.cart-close {
  width: 36px; height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255,255,255,0.06);
  border: 1px solid var(--c-border);
  border-radius: var(--r-md);
  color: var(--t-muted);
  cursor: pointer;
  transition: all var(--t-fast);
}
.cart-close:hover { color: var(--t-primary); background: rgba(255,255,255,0.12); }

/* Cart items list */
.cart-items {
  flex: 1;
  overflow-y: auto;
  padding: var(--space-4) var(--space-6);
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
  -webkit-overflow-scrolling: touch;
}

.cart-item {
  display: flex;
  align-items: center;
  gap: var(--space-4);
  padding: var(--space-4);
  background: var(--g-card);
  border: 1px solid var(--c-border);
  border-radius: var(--r-lg);
  transition: border-color var(--t-fast);
}
.cart-item:hover { border-color: rgba(139,92,246,0.25); }

.cart-item-img {
  width: 72px; height: 72px;
  border-radius: var(--r-md);
  overflow: hidden;
  flex-shrink: 0;
  background: var(--c-surface-2);
}
.cart-item-img img {
  width: 100%; height: 100%;
  object-fit: cover;
  display: block;
}

.cart-item-info { flex: 1; min-width: 0; }
.cart-item-title {
  font-weight: 600;
  font-size: 0.9rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  margin-bottom: 4px;
}
.cart-item-price {
  font-family: var(--font-head);
  font-size: 0.85rem;
  background: var(--g-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  font-weight: 700;
}

.cart-item-remove {
  width: 30px; height: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  border: 1px solid var(--c-border);
  border-radius: var(--r-sm);
  color: var(--t-subtle);
  cursor: pointer;
  transition: all var(--t-fast);
  flex-shrink: 0;
}
.cart-item-remove:hover { color: #f87171; border-color: rgba(248,113,113,0.4); background: rgba(248,113,113,0.1); }

/* Empty state */
.cart-empty {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: var(--space-5);
  padding: var(--space-8);
  color: var(--t-subtle);
  text-align: center;
}
.cart-empty p { font-size: 1rem; }

/* Cart footer */
.cart-footer {
  padding: var(--space-5) var(--space-6) var(--space-6);
  border-top: 1px solid var(--c-border);
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
  flex-shrink: 0;
}

.cart-total-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 1rem;
  font-weight: 600;
}

.cart-total-amount {
  font-family: var(--font-head);
  font-size: 1.35rem;
  font-weight: 800;
  background: var(--g-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.cart-info-text {
  font-size: 0.8125rem;
  color: var(--t-subtle);
  line-height: 1.5;
}

.cart-checkout-btn {
  width: 100%;
  justify-content: center;
}

/* "Add to Cart" button variant in lightbox */
.btn-cart-add {
  background: rgba(139,92,246,0.15) !important;
  border: 1px solid rgba(139,92,246,0.35) !important;
  color: var(--c-purple-light) !important;
}
.btn-cart-add:hover {
  background: rgba(139,92,246,0.3) !important;
  color: #fff !important;
}
.btn-cart-add.in-cart {
  background: rgba(16,185,129,0.15) !important;
  border-color: rgba(16,185,129,0.35) !important;
  color: var(--c-green) !important;
}

/* "Add to Cart" on photo cards */
.photo-cart-btn {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  padding: 6px 12px;
  background: rgba(139,92,246,0.2);
  border: 1px solid rgba(139,92,246,0.4);
  border-radius: var(--r-md);
  color: #fff;
  font-size: 0.78rem;
  font-weight: 600;
  cursor: pointer;
  transition: all var(--t-fast);
  white-space: nowrap;
}
.photo-cart-btn:hover { background: var(--g-primary); }
.photo-cart-btn.in-cart {
  background: rgba(16,185,129,0.2);
  border-color: rgba(16,185,129,0.4);
  color: var(--c-green);
}

/* Free download button — shown instead of cart button for £0 photos */
.photo-free-dl-btn {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  padding: 6px 12px;
  background: rgba(16,185,129,0.2);
  border: 1px solid rgba(16,185,129,0.4);
  border-radius: var(--r-md);
  color: #fff;
  font-size: 0.78rem;
  font-weight: 600;
  cursor: pointer;
  transition: all var(--t-fast);
  white-space: nowrap;
  text-decoration: none;
}
.photo-free-dl-btn:hover { background: rgba(16,185,129,0.35); color: #fff; }

/* Lightbox cart button in free-download mode */
#lightbox-cart-btn.free-download {
  background: rgba(16,185,129,0.2);
  border-color: rgba(16,185,129,0.4);
  color: #fff;
}

/* Price badge on photo cards */
.photo-price-badge {
  display: inline-flex;
  align-items: center;
  padding: 3px 10px;
  background: rgba(0,0,0,0.55);
  border-radius: var(--r-full);
  font-size: 0.75rem;
  font-weight: 700;
  color: #fff;
  font-family: var(--font-head);
}

/* Footer cart link (button styled as link) */
.footer-cart-link {
  background: none;
  border: none;
  color: var(--t-subtle);
  font-size: 0.9rem;
  cursor: pointer;
  padding: 0;
  transition: color var(--t-base);
  font-family: inherit;
}
.footer-cart-link:hover { color: var(--c-purple-light); }

/* =====================================================
   21. BODY LOCK (when cart / lightbox open)
   ===================================================== */
body.cart-open { overflow: hidden; }

/* =====================================================
   22. MOBILE CART ADJUSTMENTS
   ===================================================== */
@media (max-width: 768px) {
  .cart-panel {
    width: 100vw;
    border-left: none;
    border-top: 1px solid var(--c-border);
    top: auto;
    bottom: 0;
    right: 0;
    height: 92dvh;
    border-radius: var(--r-2xl) var(--r-2xl) 0 0;
    transform: translateY(100%);
  }
  .cart-sidebar.open .cart-panel { transform: translateY(0); }
}

/* =====================================================
   23. CONTACT SECTION
   ===================================================== */
.contact-card {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 40px;
  background: var(--c-surface-1);
  border: 1px solid var(--c-border);
  border-radius: var(--r-2xl);
  overflow: hidden;
}

.contact-info {
  background: var(--c-surface-2);
  padding: 40px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.contact-info h3 {
  font-size: 24px;
  font-weight: 700;
  color: var(--c-text-1);
  margin: 0 0 16px 0;
  letter-spacing: -0.5px;
}

.contact-info p {
  color: var(--c-text-2);
  font-size: 15px;
  line-height: 1.6;
  margin: 0 0 24px 0;
}

.contact-features {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.contact-features li {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--c-text-1);
  font-size: 15px;
  font-weight: 500;
}

.contact-form-container {
  padding: 40px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

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

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

.form-group label {
  font-size: 13px;
  font-weight: 600;
  color: var(--c-text-2);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.form-group input,
.form-group textarea {
  background: var(--bg);
  border: 1px solid var(--c-border);
  border-radius: var(--r-md);
  padding: 12px 16px;
  color: var(--c-text-1);
  font-family: inherit;
  font-size: 15px;
  transition: border-color var(--t-fast);
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--c-primary);
}

.contact-form .btn {
  justify-content: center;
  margin-top: 12px;
}

@media (max-width: 900px) {
  .contact-card {
    grid-template-columns: 1fr;
  }
}

.contact-section {
  padding: 40px 0 var(--space-16) 0;
}
