/* ============================================
   TamikaProud — Dark Fantasy Portfolio
   Color palette inspired by her art:
   - Deep purple-black base
   - Gold/amber accents (from reference)
   - Purple/teal highlights (from her art)
   ============================================ */

:root {
  --bg-primary: #08070d;
  --bg-secondary: #0c0b14;
  --bg-card: #0f0e18;
  --bg-card-hover: #141320;

  --gold: #c9a961;
  --gold-dim: #a08640;
  --gold-bright: #e0c878;
  --gold-glow: rgba(201, 169, 97, 0.15);

  --purple: #7b68a8;
  --purple-dim: #5a4d7a;
  --teal: #4a8b8b;

  --text-primary: #e8e4dc;
  --text-secondary: #9a9490;
  --text-dim: #5a5652;

  --font-heading: 'Cinzel', serif;
  --font-body: 'Inter', sans-serif;
  --font-accent: 'Cormorant Garamond', serif;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scrollbar-width: thin;
  scrollbar-color: var(--gold-dim) var(--bg-primary);
}

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

/* ---- Scrollbar ---- */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--bg-primary); }
::-webkit-scrollbar-thumb { background: var(--gold-dim); border-radius: 3px; }

/* ---- Navigation ---- */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.2rem 3rem;
  transition: background 0.4s, padding 0.4s, box-shadow 0.4s;
}

.nav.scrolled {
  background: rgba(8, 7, 13, 0.95);
  backdrop-filter: blur(20px);
  padding: 0.8rem 3rem;
  box-shadow: 0 2px 30px rgba(0,0,0,0.5);
}

.nav-logo {
  font-family: var(--font-heading);
  font-size: 1.1rem;
  letter-spacing: 0.2em;
  color: var(--text-primary);
  text-decoration: none;
  font-weight: 500;
}

.nav-logo .accent {
  color: var(--gold);
}

.nav-links {
  display: flex;
  gap: 2.5rem;
}

.nav-links a {
  font-family: var(--font-body);
  font-size: 0.8rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--text-secondary);
  text-decoration: none;
  transition: color 0.3s;
  font-weight: 400;
}

.nav-links a:hover {
  color: var(--gold);
}

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  width: 36px;
  height: 36px;
  gap: 6px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
  z-index: 1001;
  position: relative;
  border-radius: 50%;
  transition: background 0.3s;
}

.nav-toggle:hover {
  background: rgba(201, 169, 97, 0.08);
}

.nav-toggle span {
  display: block;
  width: 22px;
  height: 1.5px;
  margin: 0 auto;
  background: var(--text-primary);
  border-radius: 1px;
  transform-origin: center;
  transition:
    transform 0.4s cubic-bezier(0.68, -0.55, 0.27, 1.55),
    opacity 0.3s,
    background 0.3s,
    width 0.3s;
}

.nav-toggle:hover span {
  background: var(--gold, #c9a961);
}

/* Hamburger → X morph */
.nav-toggle.open span {
  background: var(--gold, #c9a961);
}
.nav-toggle.open span:nth-child(1) {
  transform: translateY(7.5px) rotate(45deg);
}
.nav-toggle.open span:nth-child(2) {
  opacity: 0;
  transform: scaleX(0);
}
.nav-toggle.open span:nth-child(3) {
  transform: translateY(-7.5px) rotate(-45deg);
}

.mobile-menu {
  display: flex;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 999;
  background: rgba(8, 7, 13, 0.98);
  backdrop-filter: blur(20px);
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2.5rem;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.35s ease, visibility 0.35s;
}

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

.mobile-menu a {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.4s ease, transform 0.4s ease, color 0.2s;
}

.mobile-menu.open a {
  opacity: 1;
  transform: translateY(0);
}

/* Stagger each link */
.mobile-menu.open a:nth-child(1) { transition-delay: 0.10s; }
.mobile-menu.open a:nth-child(2) { transition-delay: 0.16s; }
.mobile-menu.open a:nth-child(3) { transition-delay: 0.22s; }
.mobile-menu.open a:nth-child(4) { transition-delay: 0.28s; }
.mobile-menu.open a:nth-child(5) { transition-delay: 0.34s; }

.mobile-menu a:hover {
  color: var(--gold, #c9a961);
}

.mobile-menu a {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  letter-spacing: 0.2em;
  color: var(--text-secondary);
  text-decoration: none;
  transition: color 0.3s;
}

.mobile-menu a:hover {
  color: var(--gold);
}

/* ---- Hero ---- */
.hero {
  position: relative;
  height: 100vh;
  min-height: 700px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at 50% 30%, rgba(123, 104, 168, 0.08) 0%, transparent 60%),
    radial-gradient(ellipse at 70% 70%, rgba(74, 139, 139, 0.05) 0%, transparent 50%),
    radial-gradient(ellipse at 30% 80%, rgba(201, 169, 97, 0.04) 0%, transparent 50%),
    var(--bg-primary);
}

.hero-content {
  position: relative;
  text-align: center;
  z-index: 1;
}

.hero-sparkle {
  font-size: 2rem;
  color: var(--gold);
  margin-bottom: 1.5rem;
  animation: sparkle 3s ease-in-out infinite;
}

@keyframes sparkle {
  0%, 100% { opacity: 0.4; transform: scale(1); }
  50% { opacity: 1; transform: scale(1.2); }
}

.hero-title {
  font-family: var(--font-heading);
  font-size: clamp(2.5rem, 7vw, 5.5rem);
  font-weight: 500;
  letter-spacing: 0.25em;
  color: var(--gold);
  text-shadow: 0 0 80px rgba(201, 169, 97, 0.3);
  margin-bottom: 1rem;
  line-height: 1.1;
}

.hero-subtitle {
  font-family: var(--font-accent);
  font-size: clamp(1rem, 2.5vw, 1.5rem);
  color: var(--text-secondary);
  letter-spacing: 0.3em;
  text-transform: uppercase;
  margin-bottom: 1.5rem;
  font-weight: 400;
}

.hero-tagline {
  font-family: var(--font-body);
  font-size: 1rem;
  color: var(--text-dim);
  max-width: 500px;
  margin: 0 auto 2.5rem;
  font-weight: 300;
}

.hero-cta {
  display: inline-block;
  font-family: var(--font-heading);
  font-size: 0.8rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold);
  border: 1px solid var(--gold-dim);
  padding: 1rem 2.5rem;
  text-decoration: none;
  transition: all 0.4s;
}

.hero-cta:hover {
  background: var(--gold-glow);
  box-shadow: 0 0 40px rgba(201, 169, 97, 0.15);
}

.scroll-indicator {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
}

.scroll-indicator span {
  font-size: 0.65rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--text-dim);
}

.scroll-line {
  width: 1px;
  height: 40px;
  background: linear-gradient(to bottom, var(--gold-dim), transparent);
  animation: scrollPulse 2s ease-in-out infinite;
}

@keyframes scrollPulse {
  0%, 100% { opacity: 0.3; }
  50% { opacity: 1; }
}

/* ---- Sections ---- */
.section {
  padding: 8rem 2rem;
}

.section-dark {
  background: var(--bg-secondary);
}

.section-contact {
  background:
    radial-gradient(ellipse at 50% 50%, rgba(201, 169, 97, 0.05) 0%, transparent 60%),
    var(--bg-primary);
}

.container {
  max-width: 1200px;
  margin: 0 auto;
}

.section-title {
  font-family: var(--font-heading);
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  letter-spacing: 0.2em;
  color: var(--gold);
  text-align: center;
  margin-bottom: 0.8rem;
  font-weight: 500;
}

.section-subtitle {
  font-family: var(--font-accent);
  font-size: 1.1rem;
  color: var(--text-secondary);
  text-align: center;
  margin-bottom: 4rem;
  font-style: italic;
}

/* ---- Portfolio ---- */
.portfolio-filters {
  display: flex;
  justify-content: center;
  gap: 0.5rem;
  margin-bottom: 3rem;
  flex-wrap: wrap;
}

.filter-btn {
  font-family: var(--font-body);
  font-size: 0.75rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  padding: 0.6rem 1.5rem;
  border: 1px solid var(--text-dim);
  background: transparent;
  color: var(--text-secondary);
  cursor: pointer;
  transition: all 0.3s;
}

.filter-btn:hover,
.filter-btn.active {
  border-color: var(--gold);
  color: var(--gold);
  background: var(--gold-glow);
}

.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
  margin-bottom: 3rem;
}

.portfolio-item {
  position: relative;
  aspect-ratio: 3/4;
  overflow: hidden;
  cursor: pointer;
  border-radius: 4px;
  transition: transform 0.4s, box-shadow 0.4s;
}

.portfolio-item:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0,0,0,0.4);
}

.portfolio-img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
  transition: transform 0.6s;
}

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

/* Landscape illustrations — span 2 columns */
.portfolio-item[data-category="illustration"] {
  grid-column: span 2;
  aspect-ratio: 16/9;
}

.portfolio-item[data-category="fullbody"] {
  grid-column: span 2;
  aspect-ratio: 3/2;
}

.portfolio-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 2rem 1rem 1rem;
  background: linear-gradient(to top, rgba(8,7,13,0.95), transparent);
  transform: translateY(100%);
  transition: transform 0.4s;
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.portfolio-item:hover .portfolio-overlay {
  transform: translateY(0);
}

.portfolio-name {
  font-family: var(--font-heading);
  font-size: 0.85rem;
  letter-spacing: 0.1em;
  color: var(--text-primary);
}

.portfolio-type {
  font-size: 0.7rem;
  color: var(--gold-dim);
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.portfolio-links {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

.btn-outline {
  font-family: var(--font-body);
  font-size: 0.8rem;
  letter-spacing: 0.1em;
  padding: 0.8rem 2rem;
  border: 1px solid var(--text-dim);
  color: var(--text-secondary);
  text-decoration: none;
  transition: all 0.3s;
}

.btn-outline:hover {
  border-color: var(--gold);
  color: var(--gold);
}

/* ---- Pricing (full-format rows with example gallery) ---- */
.pricing-list {
  display: flex;
  flex-direction: column;
  gap: 2rem;
  margin-bottom: 4rem;
}

.pricing-row {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 2rem;
  padding: 2rem;
  background: var(--bg-card);
  border: 1px solid rgba(201, 169, 97, 0.08);
  border-radius: 8px;
  transition: border-color 0.4s, transform 0.4s, box-shadow 0.4s;
}

.pricing-row:hover {
  border-color: rgba(201, 169, 97, 0.25);
  transform: translateY(-3px);
  box-shadow: 0 16px 50px rgba(0, 0, 0, 0.4);
}

.pricing-row-info {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.pricing-row-info h3 {
  font-family: var(--font-heading);
  font-size: 1.1rem;
  letter-spacing: 0.12em;
  color: var(--text-primary);
  margin-bottom: 0.5rem;
  font-weight: 500;
}

.pricing-row-info h3 small {
  font-family: var(--font-accent);
  color: var(--text-secondary);
  font-size: 0.85rem;
  font-style: italic;
}

/* ---- Pricing tier carousel ----
   System rules (must hold for every tier, portrait & landscape):
   1. NEVER crop an image — object-fit: contain everywhere.
   2. The track sizes to the active image, not the other way around — no
      arbitrary empty space around portrait images.
   3. Arrows + dots live OUTSIDE the image and never overlap it.
   4. Heights cap at a single number (--gallery-h) per breakpoint, so the
      design rhythm stays consistent across all 5 tiers. */

:root {
  --gallery-h: 460px;
}

.pricing-row-gallery.carousel {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
  width: 100%;
}

.gallery-track {
  position: relative;
  width: 100%;
  height: var(--gallery-h);
  overflow: hidden;
}

.gallery-slide {
  position: absolute;
  inset: 0;
  margin: auto;          /* centers the image inside the track */
  max-width: 100%;       /* never wider than the track */
  max-height: 100%;      /* never taller than the track */
  width: auto;
  height: auto;
  object-fit: contain;   /* preserves the natural aspect, no pixel crop */
  border-radius: 4px;
  cursor: zoom-in;
  display: none;
  transition: transform 0.4s ease;
}

.gallery-slide.active {
  display: block;
  animation: gallery-fade-in 0.32s ease both;
}

.gallery-slide:hover {
  transform: scale(1.02);
}

@keyframes gallery-fade-in {
  from { opacity: 0; transform: scale(0.985); }
  to   { opacity: 1; transform: scale(1); }
}

/* Arrows + dots together at the bottom — never overlap the image */
.gallery-controls {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1.25rem;
  width: 100%;
}

.gallery-arrow {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: transparent;
  border: 1px solid rgba(201, 169, 97, 0.4);
  color: var(--gold, #c9a961);
  font-size: 1.3rem;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: background 0.25s, border-color 0.25s, transform 0.2s;
  user-select: none;
}

.gallery-arrow:hover {
  background: rgba(201, 169, 97, 0.12);
  border-color: var(--gold, #c9a961);
}

.gallery-arrow:active {
  transform: scale(0.92);
}

.gallery-dots {
  display: flex;
  gap: 0.5rem;
  align-items: center;
}

.gallery-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: rgba(201, 169, 97, 0.28);
  border: none;
  padding: 0;
  cursor: pointer;
  transition: background 0.25s, transform 0.25s;
}

.gallery-dot.active {
  background: var(--gold, #c9a961);
  transform: scale(1.4);
}

.gallery-dot:hover {
  background: var(--gold, #c9a961);
}

@media (max-width: 640px) {
  :root { --gallery-h: 360px; }
  .gallery-arrow { width: 34px; height: 34px; font-size: 1.15rem; }
}

/* Legacy classes kept for backwards compatibility */
.pricing-card-content h3 {
  font-family: var(--font-heading);
  font-size: 1rem;
  letter-spacing: 0.1em;
  color: var(--text-primary);
  margin-bottom: 0.5rem;
  font-weight: 500;
}

.price {
  font-family: var(--font-heading);
  font-size: 2rem;
  color: var(--gold);
  margin-bottom: 1rem;
  font-weight: 600;
}

.price span {
  font-size: 1rem;
  color: var(--gold-dim);
}

.pricing-features {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.pricing-features li {
  font-size: 0.85rem;
  color: var(--text-secondary);
  padding-left: 1.2rem;
  position: relative;
}

.pricing-features li::before {
  content: '✦';
  position: absolute;
  left: 0;
  color: var(--gold-dim);
  font-size: 0.6rem;
  top: 3px;
}

/* ---- Extras ---- */
.extras {
  margin-bottom: 3rem;
}

.extras-title {
  font-family: var(--font-heading);
  font-size: 1.2rem;
  letter-spacing: 0.15em;
  color: var(--text-primary);
  text-align: center;
  margin-bottom: 2rem;
  font-weight: 500;
}

.extras-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1rem;
}

.extra-item {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.7rem 1.2rem;
  background: var(--bg-card);
  border: 1px solid rgba(201, 169, 97, 0.06);
  border-radius: 4px;
  font-size: 0.85rem;
  color: var(--text-secondary);
}

.extra-icon {
  font-size: 1rem;
  opacity: 0.6;
}

/* ---- Discount ---- */
.discount-banner {
  display: flex;
  align-items: center;
  gap: 2rem;
  padding: 2rem 3rem;
  background: linear-gradient(135deg, rgba(201, 169, 97, 0.08), rgba(201, 169, 97, 0.03));
  border: 1px solid rgba(201, 169, 97, 0.15);
  border-radius: 6px;
}

.discount-badge {
  font-family: var(--font-heading);
  font-size: 2rem;
  color: var(--gold);
  font-weight: 700;
  white-space: nowrap;
}

.discount-text h4 {
  font-family: var(--font-heading);
  font-size: 1rem;
  letter-spacing: 0.1em;
  color: var(--text-primary);
  margin-bottom: 0.3rem;
  font-weight: 500;
}

.discount-text p {
  font-size: 0.9rem;
  color: var(--text-secondary);
}

/* ---- Timeline ---- */
.timeline {
  max-width: 700px;
  margin: 0 auto;
  position: relative;
  padding-left: 3rem;
}

.timeline::before {
  content: '';
  position: absolute;
  left: 1rem;
  top: 0;
  bottom: 0;
  width: 1px;
  background: linear-gradient(to bottom, var(--gold-dim), transparent);
}

.timeline-item {
  position: relative;
  margin-bottom: 3rem;
  padding-left: 2rem;
}

.timeline-number {
  position: absolute;
  left: -3rem;
  top: 0;
  width: 2rem;
  height: 2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--gold-dim);
  border-radius: 50%;
  font-family: var(--font-heading);
  font-size: 0.8rem;
  color: var(--gold);
  background: var(--bg-primary);
}

.timeline-content h3 {
  font-family: var(--font-heading);
  font-size: 1rem;
  letter-spacing: 0.1em;
  color: var(--text-primary);
  margin-bottom: 0.5rem;
  font-weight: 500;
}

.timeline-content p {
  font-size: 0.9rem;
  color: var(--text-secondary);
  line-height: 1.7;
}

/* ---- Merch ---- */
.merch-coming {
  text-align: center;
  padding: 4rem 2rem;
  border: 1px dashed rgba(201, 169, 97, 0.15);
  border-radius: 8px;
}

.merch-icon {
  font-size: 3rem;
  color: var(--gold-dim);
  margin-bottom: 1.5rem;
  opacity: 0.5;
}

.merch-coming h3 {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  letter-spacing: 0.2em;
  color: var(--text-primary);
  margin-bottom: 0.5rem;
}

.merch-coming p {
  color: var(--text-secondary);
  font-size: 0.95rem;
}

.merch-follow {
  margin-top: 1rem;
  font-size: 0.85rem !important;
  color: var(--text-dim) !important;
}

.merch-live {
  text-align: center;
  padding: 3.5rem 2rem;
  border: 1px solid rgba(201, 169, 97, 0.25);
  border-radius: 8px;
  background: linear-gradient(180deg, rgba(201, 169, 97, 0.04), transparent 70%);
  max-width: 720px;
  margin: 0 auto;
}

.merch-live .merch-icon {
  opacity: 1;
  margin-bottom: 1rem;
}

.merch-live-heading {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  letter-spacing: 0.2em;
  color: var(--text-primary);
  margin-bottom: 0.75rem;
}

.merch-live-desc {
  color: var(--text-secondary);
  font-size: 1rem;
  line-height: 1.7;
  max-width: 520px;
  margin: 0 auto 1.75rem;
}

.merch-cta {
  display: inline-block;
  padding: 1rem 2.25rem !important;
  font-size: 0.95rem !important;
  letter-spacing: 0.2em;
}

.merch-live-foot {
  margin-top: 1.25rem;
  font-size: 0.85rem;
  color: var(--text-dim);
}

/* ---- Support my work ---- */
.support-live,
.support-coming {
  text-align: center;
  padding: 3.5rem 2rem;
  border: 1px solid rgba(201, 169, 97, 0.25);
  border-radius: 8px;
  background: linear-gradient(180deg, rgba(201, 169, 97, 0.04), transparent 70%);
  max-width: 720px;
  margin: 0 auto;
}

.support-heart {
  width: 56px;
  height: 56px;
  color: var(--gold, #c9a961);
  margin: 0 auto 1.25rem;
  display: block;
  filter: drop-shadow(0 0 18px rgba(201, 169, 97, 0.35));
  animation: support-heart-pulse 2.8s ease-in-out infinite;
  transition: transform 0.4s;
}

@keyframes support-heart-pulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.08); filter: drop-shadow(0 0 24px rgba(201, 169, 97, 0.55)); }
}

.support-live:hover .support-heart {
  transform: scale(1.12);
  fill: rgba(201, 169, 97, 0.18);
}

.support-live-heading {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  letter-spacing: 0.2em;
  color: var(--text-primary);
  margin-bottom: 0.75rem;
}

.support-live-desc {
  color: var(--text-secondary);
  font-size: 1rem;
  line-height: 1.7;
  max-width: 520px;
  margin: 0 auto 1.75rem;
}

.support-cta {
  display: inline-block;
  padding: 1rem 2.25rem !important;
  font-size: 0.95rem !important;
  letter-spacing: 0.2em;
}

.support-live-foot {
  margin-top: 1.25rem;
  font-size: 0.85rem;
  color: var(--text-dim);
}

.support-coming h3 {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  letter-spacing: 0.2em;
  color: var(--text-primary);
  margin-bottom: 0.5rem;
}

.support-coming p {
  color: var(--text-secondary);
  font-size: 0.95rem;
}

/* Copy-to-clipboard tooltip for email-link */
.email-link.copy-shown::after {
  content: attr(data-copy-msg);
  position: absolute;
  left: 50%;
  bottom: calc(100% + 0.4rem);
  transform: translateX(-50%);
  background: var(--gold, #c9a961);
  color: #08070d;
  font-family: var(--font-body, sans-serif);
  font-size: 0.8rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 0.35rem 0.75rem;
  border-radius: 4px;
  white-space: nowrap;
  pointer-events: none;
  animation: copy-pop 1.8s ease both;
}

@keyframes copy-pop {
  0% { opacity: 0; transform: translate(-50%, 8px); }
  15% { opacity: 1; transform: translate(-50%, 0); }
  85% { opacity: 1; transform: translate(-50%, 0); }
  100% { opacity: 0; transform: translate(-50%, -4px); }
}

/* ---- Examples page ---- */
.examples-hero {
  padding: 8rem 0 3rem;
  text-align: center;
}

.examples-back {
  display: inline-block;
  margin-bottom: 2rem;
  font-size: 0.9rem;
  letter-spacing: 0.15em;
  color: var(--text-secondary);
  text-decoration: none;
  transition: color 0.2s;
}

.examples-back:hover {
  color: var(--gold);
}

.examples-page-title {
  font-size: clamp(2rem, 5vw, 3.5rem) !important;
  margin-bottom: 0.75rem;
}

.examples-page-section {
  padding-top: 2rem;
}

.examples-cta {
  margin-top: 2.5rem;
  text-align: center;
}

/* Clickable Examples title on main page */
.examples-title-link {
  display: block;
  text-align: center;
  margin: 3rem auto 1rem;
  text-decoration: none;
  color: inherit;
  transition: transform 0.3s;
}

.examples-title-link .examples-title {
  display: inline-block;
  position: relative;
  cursor: pointer;
  transition: color 0.3s, letter-spacing 0.3s;
  border-bottom: 1px solid currentColor;
  padding-bottom: 0.3em;
}

.examples-title-link:hover .examples-title {
  color: var(--gold, #c9a961);
  letter-spacing: 0.22em;
}

.examples-title-link:focus-visible {
  outline: 2px solid var(--gold, #c9a961);
  outline-offset: 6px;
  border-radius: 4px;
}

/* Reserve space under the fixed nav so anchor links land below it.
   scroll-padding-top on the root handles all in-page anchors uniformly. */
html {
  scroll-padding-top: 80px;
  scroll-behavior: smooth;
}

/* Reserve room for lazy-loaded portfolio images so layout doesn't shift */
.portfolio-mosaic .portfolio-img,
.examples-grid .portfolio-img {
  min-height: 1px;
}

/* ---- Contact ---- */
.contact-email {
  text-align: center;
  margin-bottom: 2rem;
}

.contact-email p {
  font-size: 0.9rem;
  color: var(--text-secondary);
  margin-bottom: 0.5rem;
}

.email-link {
  font-family: var(--font-heading);
  font-size: clamp(1.2rem, 3vw, 1.8rem);
  position: relative;
  cursor: pointer;
  letter-spacing: 0.15em;
  color: var(--gold);
  text-decoration: none;
  transition: text-shadow 0.3s;
}

.email-link:hover {
  text-shadow: 0 0 30px rgba(201, 169, 97, 0.4);
}

.email-note {
  font-size: 0.85rem !important;
  color: var(--text-dim) !important;
  margin-top: 0.8rem !important;
}

.btn-primary {
  display: block;
  width: fit-content;
  margin: 0 auto 3rem;
  font-family: var(--font-heading);
  font-size: 0.85rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  padding: 1.1rem 3rem;
  background: linear-gradient(135deg, var(--gold-dim), var(--gold));
  color: var(--bg-primary);
  text-decoration: none;
  border: none;
  cursor: pointer;
  transition: all 0.4s;
  font-weight: 600;
}

.btn-primary:hover {
  box-shadow: 0 0 40px rgba(201, 169, 97, 0.3);
  transform: translateY(-2px);
}

/* ---- Social Links ---- */
.social-links {
  display: flex;
  justify-content: center;
  gap: 1.5rem;
  flex-wrap: wrap;
}

.social-link {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border: 1px solid var(--text-dim);
  border-radius: 50%;
  color: var(--text-secondary);
  text-decoration: none;
  transition: all 0.3s;
}

.social-link svg {
  width: 20px;
  height: 20px;
}

.social-link:hover {
  border-color: var(--gold);
  color: var(--gold);
  box-shadow: 0 0 20px rgba(201, 169, 97, 0.15);
}

/* ---- Footer ---- */
.footer {
  text-align: center;
  padding: 2rem;
  border-top: 1px solid rgba(255,255,255,0.04);
  font-size: 0.75rem;
  color: var(--text-dim);
  letter-spacing: 0.1em;
}

/* ---- Magic Canvas ---- */
.magic-canvas {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  pointer-events: none;
}


/* ---- Portfolio 3D Tilt ---- */
.portfolio-item {
  transform-style: preserve-3d;
  will-change: transform;
}

/* ---- Portfolio Justified Gallery (same height rows, natural aspect) ---- */
.portfolio-mosaic {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-bottom: 3rem;
  justify-content: center;
}

.portfolio-mosaic .portfolio-item,
.portfolio-mosaic .portfolio-item[data-category="illustration"],
.portfolio-mosaic .portfolio-item[data-category="fullbody"] {
  position: relative;
  height: 360px;
  width: auto;
  aspect-ratio: auto;
  grid-column: auto;
  overflow: hidden;
  cursor: pointer;
  border-radius: 4px;
  transition: transform 0.4s, box-shadow 0.4s;
  flex: 0 0 auto;
}

.portfolio-mosaic .portfolio-img {
  height: 100%;
  width: auto;
  object-fit: contain;
  display: block;
  transition: transform 0.6s;
}

.portfolio-mosaic .portfolio-item:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
}

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

/* ---- Examples Grid (commission examples at end of commissions) ---- */
.examples-title {
  margin-top: 3rem;
}

.how-it-works-title {
  margin-top: 3rem;
  margin-bottom: 2rem;
}

.examples-grid {
  margin-bottom: 2rem;
}

.btn-outline-gold {
  border-color: var(--gold-dim);
  color: var(--gold);
}

.btn-outline-gold:hover {
  background: var(--gold-glow);
  border-color: var(--gold);
  color: var(--gold-bright);
}

/* ---- Magic Text Reveal ---- */
.magic-reveal {
  clip-path: inset(0 100% 0 0);
  opacity: 0;
  filter: drop-shadow(0 0 0px transparent);
  transition: none;
}

.magic-reveal.visible {
  animation: magicReveal 1s cubic-bezier(0.25, 0.46, 0.45, 0.94) forwards;
}

@keyframes magicReveal {
  0% {
    clip-path: inset(0 100% 0 0);
    opacity: 0;
    filter: drop-shadow(0 0 0px var(--gold));
  }
  30% {
    opacity: 1;
    filter: drop-shadow(0 0 15px var(--gold));
  }
  100% {
    clip-path: inset(0 0% 0 0);
    opacity: 1;
    filter: drop-shadow(0 0 0px var(--gold));
  }
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  .magic-canvas { display: none; }
  .magic-reveal { clip-path: none; opacity: 1; filter: none; }
  .magic-reveal.visible { animation: none; }
}

/* ---- Animations ---- */
.fade-in {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ---- Lightbox ---- */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.4s ease, visibility 0.4s ease;
}

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

.lightbox-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.lightbox-wrapper {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  max-width: 90vw;
  max-height: 90vh;
  z-index: 1;
  transform: scale(0.95);
  transition: transform 0.4s ease;
}

.lightbox.open .lightbox-wrapper {
  transform: scale(1);
}

.lightbox-img {
  max-width: 90vw;
  max-height: calc(90vh - 60px);
  object-fit: contain;
  border-radius: 4px;
  box-shadow: 0 20px 80px rgba(0, 0, 0, 0.6);
  user-select: none;
  -webkit-user-drag: none;
}

.lightbox-info {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  margin-top: 0.75rem;
  padding: 0.6rem 1.2rem;
  background: linear-gradient(135deg, rgba(30, 25, 45, 0.85), rgba(15, 12, 25, 0.9));
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(201, 169, 97, 0.15);
  border-radius: 2rem;
  min-width: 200px;
}

.lightbox-text {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
}

.lightbox-name {
  font-family: var(--font-heading);
  font-size: 0.85rem;
  letter-spacing: 0.1em;
  color: var(--gold);
}

.lightbox-type {
  font-size: 0.65rem;
  color: var(--text-secondary);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.lightbox-close {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border: 1px solid rgba(201, 169, 97, 0.25);
  border-radius: 50%;
  background: rgba(201, 169, 97, 0.08);
  color: var(--gold-dim);
  cursor: pointer;
  transition: all 0.3s ease;
  flex-shrink: 0;
}

.lightbox-close:hover {
  background: rgba(201, 169, 97, 0.2);
  color: var(--gold);
  border-color: var(--gold);
}

.lightbox-nav {
  position: absolute;
  top: 50%;
  transform: translateY(calc(-50% - 30px));
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border: 1px solid rgba(201, 169, 97, 0.2);
  border-radius: 50%;
  background: rgba(15, 12, 25, 0.6);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  color: var(--gold-dim);
  cursor: pointer;
  transition: all 0.3s ease;
  opacity: 0.7;
}

.lightbox-nav:hover {
  background: rgba(201, 169, 97, 0.15);
  color: var(--gold);
  border-color: var(--gold);
  opacity: 1;
}

.lightbox-prev {
  left: -60px;
}

.lightbox-next {
  right: -60px;
}

/* ---- Responsive ---- */
@media (max-width: 1024px) {
  .portfolio-grid {
    grid-template-columns: repeat(3, 1fr);
  }
  .portfolio-mosaic .portfolio-item {
    height: 300px;
  }
  .pricing-row {
    grid-template-columns: 240px 1fr;
    gap: 1.5rem;
    padding: 1.5rem;
  }
}

@media (max-width: 768px) {
  .nav-links { display: none; }
  .nav-toggle { display: flex; }
  .nav { padding: 1rem 1.5rem; }
  .nav.scrolled { padding: 0.8rem 1.5rem; }

  .lightbox-prev { left: 8px; }
  .lightbox-next { right: 8px; }
  .lightbox-nav { width: 36px; height: 36px; }
  .lightbox-img { max-width: 95vw; max-height: calc(85vh - 60px); }

  .portfolio-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .portfolio-mosaic .portfolio-item {
    height: 240px;
    max-width: 100%;
  }
  .portfolio-mosaic .portfolio-img {
    max-width: 100%;
  }

  .pricing-row {
    grid-template-columns: 1fr;
    gap: 2.25rem;
  }
  .pricing-row-gallery.carousel {
    margin-top: 0.5rem;
  }

  .section { padding: 5rem 1.5rem; }

  .discount-banner {
    flex-direction: column;
    text-align: center;
    gap: 1rem;
    padding: 2rem;
  }

  .timeline { padding-left: 2.5rem; }
  .timeline::before { left: 0.75rem; }
  .timeline-number { left: -2.5rem; }
}

@media (max-width: 480px) {
  .portfolio-grid {
    grid-template-columns: 1fr;
    gap: 0.5rem;
  }

  .portfolio-item[data-category="illustration"],
  .portfolio-item[data-category="fullbody"] {
    grid-column: span 1;
  }

  .portfolio-mosaic .portfolio-item {
    height: auto;
    max-width: 100%;
    width: 100%;
  }
  .portfolio-mosaic .portfolio-img {
    height: auto;
    width: 100%;
    max-width: 100%;
  }

  .pricing-row-gallery {
    grid-template-columns: 1fr;
  }

  .hero-title {
    letter-spacing: 0.15em;
  }

  .hero-cta {
    padding: 0.8rem 2rem;
  }
}

/* ---- No-crop overrides for examples grid (and any portfolio-grid) ---- */
.examples-grid {
  display: flex !important;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: center;
  grid-template-columns: none !important;
}
.examples-grid .portfolio-item,
.examples-grid .portfolio-item[data-category="illustration"],
.examples-grid .portfolio-item[data-category="fullbody"] {
  height: 320px;
  width: auto;
  aspect-ratio: auto;
  grid-column: auto;
  flex: 0 0 auto;
  overflow: visible;
}
.examples-grid .portfolio-img {
  height: 100%;
  width: auto;
  max-width: 100%;
  object-fit: contain;
  display: block;
}
@media (max-width: 1024px) {
  .examples-grid .portfolio-item { height: 280px; }
}
@media (max-width: 768px) {
  .examples-grid .portfolio-item { height: 240px; }
}
@media (max-width: 480px) {
  .examples-grid .portfolio-item {
    height: auto;
    width: 100%;
    max-width: 100%;
  }
  .examples-grid .portfolio-img {
    height: auto;
    width: 100%;
    max-width: 100%;
  }
}
