/* ============================================================
   PHANTOM STORM — Cosplay & Alt Photography
   Retro-Alt / Zine Style — Edgy, Brutalist, Clean
   ============================================================ */

:root {
  --cream: #eaddcf;
  --cream-light: #f4eee6;
  --ink: #181511;
  --burgundy: #d73a27;
  --dust: #c2b5a3;
  --font-display: 'Bebas Neue', 'Impact', sans-serif;
  --font-serif: 'Playfair Display', 'Georgia', serif;
  --font-mono: 'Space Mono', 'Courier New', monospace;
  --border-main: 2px solid var(--ink);
  --shadow-main: 6px 6px 0 var(--ink);
  --easing: cubic-bezier(0.25, 0.46, 0.45, 0.94);
  --easing-spring: cubic-bezier(0.34, 1.56, 0.64, 1);
}

/* ── Reset & Baseline ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; overflow-x: hidden; width: 100vw; }
body {
  background: var(--cream); color: var(--ink);
  font-family: var(--font-mono); font-size: 14px; line-height: 1.7;
  overflow-x: hidden; width: 100vw; cursor: none;
}
img { display: block; width: 100%; height: 100%; object-fit: cover; }
a { color: inherit; text-decoration: none; cursor: none; }
button { outline: none; border: none; cursor: none; }

/* Disable custom cursor fully on mobile touch devices */
@media (pointer: coarse) {
  body, a, button { cursor: auto !important; }
  #cursor { display: none !important; }
}

/* ── Grain Overlay ── */
.grain {
  position: fixed; inset: 0; pointer-events: none; z-index: 9999; opacity: 0.05;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='1.2' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)'/%3E%3C/svg%3E");
  background-repeat: repeat; background-size: 150px 150px;
  animation: grain-shift 4s steps(10) infinite;
}
@keyframes grain-shift {
  0%, 100% { background-position: 0 0; }
  20% { background-position: -10% 5%; }
  40% { background-position: 5% -15%; }
  60% { background-position: -5% 10%; }
  80% { background-position: 10% 5%; }
}

/* ── Custom Cursor ── */
#cursor { position: fixed; top: 0; left: 0; pointer-events: none; z-index: 10000; }
.cursor-ring {
  position: absolute; width: 30px; height: 30px; border: 2px solid var(--burgundy); border-radius: 50%;
  transform: translate(-50%, -50%); transition: width 0.2s var(--easing), height 0.2s var(--easing), background 0.2s; mix-blend-mode: difference;
}
.cursor-dot { position: absolute; width: 6px; height: 6px; background: var(--ink); border-radius: 50%; transform: translate(-50%, -50%); }
body.hovering .cursor-ring { width: 50px; height: 50px; background: rgba(215, 58, 39, 0.2); border-color: var(--burgundy); }
body.hovering .cursor-dot { background: var(--burgundy); }

/* ── Navigation (Centered desktop) ── */
#main-nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
  display: flex; align-items: center; justify-content: space-between;
  padding: 20px 40px; pointer-events: auto;
  background: rgba(234, 221, 207, 0.85); backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  transition: transform 0.4s var(--easing), background 0.3s, border-color 0.3s;
  border-bottom: 2px solid transparent;
}
#main-nav.scrolled {
  background: rgba(234, 221, 207, 0.95);
  border-bottom: 2px solid var(--ink);
}
#main-nav.nav-hidden { transform: translateY(-100%); }

.nav-logo { display: flex; align-items: center; gap: 10px; font-weight: 700; z-index: 2; }
.logo-mark { font-size: 22px; color: var(--burgundy); animation: spin-slow 12s linear infinite; }
@keyframes spin-slow { to { transform: rotate(360deg); } }
.logo-text { font-family: var(--font-display); font-size: 16px; line-height: 1; letter-spacing: 0.1em; }

.nav-links {
  position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%);
  display: flex; gap: 32px; align-items: center; z-index: 1;
}
.nav-links a { font-family: var(--font-display); font-size: 18px; letter-spacing: 0.05em; text-transform: lowercase; opacity: 0.7; transition: opacity 0.2s, color 0.2s, transform 0.2s; }
.nav-links a:hover { opacity: 1; color: var(--burgundy); }
.nav-highlight { background: var(--ink); color: var(--cream) !important; padding: 4px 12px; opacity: 1 !important; }
.nav-highlight:hover { background: var(--burgundy); transform: translateY(-2px); }

.nav-controls { display: flex; align-items: center; gap: 20px; z-index: 2; }
.lang-switch { font-weight: bold; font-size: 14px; display: flex; gap: 4px; }
.lang-btn { background: none; color: var(--ink); opacity: 0.4; transition: opacity 0.2s; font-family: var(--font-mono); }
.lang-btn.active { opacity: 1; color: var(--burgundy); text-decoration: underline; }
.lang-btn:hover { opacity: 1; }
.nav-info { display: flex; flex-direction: column; align-items: flex-end; gap: 2px; }
.nav-tag { font-family: var(--font-mono); font-size: 10px; font-weight: 700; background: var(--ink); color: var(--cream); padding: 2px 6px; letter-spacing: 0.1em; }

/* ── 3D Canvas ── */
#three-canvas { position: fixed; top: 0; left: 0; width: 100vw; height: 100vh; z-index: -1; pointer-events: none; }

/* ── Body & Gallery Mode (SILVER BULLET FIX) ── */
#page-body { 
  position: relative; z-index: 10; pointer-events: none; width: 100%; overflow-x: hidden; 
  transition: opacity 0.5s ease, visibility 0.5s;
}

body.gallery-active {
  overflow: hidden !important;
}

body.gallery-active #page-body { 
  display: none !important; /* Fully removes height eliminating scroll bleed */
}
body.gallery-active #main-nav { transform: translateY(-100%); }

#exit-gallery {
  position: fixed; top: 20px; left: 50%; transform: translateX(-50%) translateY(-20px);
  z-index: 2000; background: var(--ink); color: var(--cream); border: 2px solid var(--ink);
  box-shadow: 4px 4px 0 var(--burgundy); padding: 12px 24px;
  font-family: var(--font-display); font-size: 20px; letter-spacing: 0.05em;
  opacity: 0; pointer-events: none;
  transition: opacity 0.3s, transform 0.4s var(--easing-spring), background 0.2s;
}
body.gallery-active #exit-gallery { opacity: 1; pointer-events: auto; transform: translateX(-50%) translateY(0); }
#exit-gallery:hover { background: var(--burgundy); transform: translateX(-50%) translateY(-4px); box-shadow: 6px 6px 0 var(--ink); }

/* Enable interaction on UI only */
.glass-container, a, button, .featured-card, .glass-hitbox { pointer-events: auto; }

.glass-container {
  background: rgba(234, 221, 207, 0.85); backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px); border: var(--border-main);
  box-shadow: var(--shadow-main); padding: 40px; margin-bottom: 40px;
}

/* ── Hero ── */
#hero { position: relative; height: 100vh; display: flex; align-items: center; justify-content: center; pointer-events: none; width: 100%; }
.hero-text-layer {
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  background: rgba(234, 221, 207, 0.6); backdrop-filter: blur(4px);
  padding: 40px 60px; border: var(--border-main); box-shadow: var(--shadow-main); transform: rotate(-1deg);
  pointer-events: auto; 
}
.hero-eyebrow { overflow: hidden; white-space: nowrap; width: 100%; max-width: 400px; margin-bottom: 10px; border-bottom: 2px solid var(--ink); padding-bottom: 8px; }
.ticker { font-family: var(--font-mono); font-size: 10px; font-weight: bold; display: inline-block; animation: ticker 15s linear infinite; }
@keyframes ticker { from { transform: translateX(100%); } to { transform: translateX(-100%); } }
.title-line { font-family: var(--font-display); font-size: clamp(60px, 15vw, 200px); line-height: 0.85; letter-spacing: 0.02em; color: var(--ink); }
.title-line.line-2 { color: var(--cream); -webkit-text-stroke: 2px var(--ink); }
.hero-sub { font-family: var(--font-mono); font-weight: bold; font-size: clamp(12px, 1.5vw, 16px); margin-top: 20px; text-align: center; text-transform: lowercase; }
.hero-scroll-hint { position: absolute; bottom: 40px; left: 50%; transform: translateX(-50%); display: flex; flex-direction: column; align-items: center; gap: 8px; font-weight: bold; }
.hero-scroll-hint span { font-size: 10px; letter-spacing: 0.2em; background: var(--ink); color: var(--cream); padding: 4px 8px; }

/* ── Typography & Components ── */
.section-label { display: inline-flex; align-items: center; gap: 12px; border: 2px solid var(--ink); padding: 4px 12px; background: var(--cream); box-shadow: 3px 3px 0 var(--burgundy); margin-bottom: 30px; }
.label-num { font-family: var(--font-display); font-size: 16px; color: var(--burgundy); }
.label-text { font-weight: bold; font-size: 10px; letter-spacing: 0.1em; }
.section-title { font-family: var(--font-display); font-size: clamp(40px, 8vw, 100px); line-height: 0.9; text-transform: lowercase; }
.section-title em { font-family: var(--font-serif); color: var(--burgundy); font-style: italic; font-size: 1.1em;}

/* ── Sections ── */
.section-works, .section-process, .section-about, .section-contact { padding: 100px 40px; max-width: 1400px; margin: 0 auto; width: 100%; }
.works-header { max-width: 600px; transform: rotate(1deg); }
.section-intro { font-family: var(--font-mono); font-size: 14px; font-weight: 700; margin-top: 16px; }

.works-featured { display: grid; grid-template-columns: 1.2fr 1fr; gap: 40px; cursor: pointer; }
.featured-card { background: var(--cream-light); border: var(--border-main); box-shadow: var(--shadow-main); padding: 12px; display: flex; flex-direction: column; transition: transform 0.2s, box-shadow 0.2s; }
.featured-card:hover { transform: translate(-4px, -4px); box-shadow: 10px 10px 0 var(--burgundy); }
.featured-img-wrap { border: 2px solid var(--ink); overflow: hidden; flex-grow: 1; pointer-events: none; }
.featured-img-wrap img { filter: contrast(1.1) grayscale(0.2); transition: filter 0.4s, transform 0.6s; }
.featured-card:hover img { filter: contrast(1.2) grayscale(0); transform: scale(1.05); }

.featured-large { height: 700px; }
.featured-pair { display: flex; flex-direction: column; gap: 40px; }
.featured-sm { height: calc(350px - 20px); }
.featured-meta { padding-top: 12px; display: flex; justify-content: space-between; align-items: baseline; pointer-events: none; }
.featured-meta h3 { font-family: var(--font-display); font-size: 24px; text-transform: lowercase; }
.meta-series { font-size: 10px; font-weight: bold; background: var(--burgundy); color: var(--cream); padding: 2px 6px; }

/* ── About ── */
.about-grid { display: grid; grid-template-columns: 400px 1fr; gap: 60px; align-items: center; }
.portrait-frame { background: var(--cream-light); padding: 16px 16px 60px; border: var(--border-main); box-shadow: var(--shadow-main); transform: rotate(-3deg); position: relative; pointer-events: auto; }
.portrait-frame img { border: 2px solid var(--ink); height: 500px; filter: contrast(1.2); }
.portrait-label { position: absolute; bottom: 16px; left: 0; right: 0; text-align: center; font-weight: bold; font-size: 12px; line-height: 1.2; }
.about-content p { font-family: var(--font-serif); font-size: 18px; line-height: 1.6; margin-bottom: 20px; font-weight: bold; }
.manifesto-tags { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 30px; }
.tag { background: var(--ink); color: var(--cream); padding: 6px 12px; font-size: 12px; font-weight: bold; text-transform: lowercase; }

/* ── Process ── */
.title-box { display: inline-block; transform: rotate(-1.5deg); }
.process-steps { display: flex; flex-direction: column; gap: 40px; margin-top: 40px; max-width: 900px; }
.process-step { display: grid; grid-template-columns: 80px 1fr; gap: 30px; align-items: center; transform: rotate(1deg); }
.process-step.reverse { transform: rotate(-1deg); align-self: flex-end; }
.step-num { font-family: var(--font-display); font-size: 80px; color: var(--burgundy); -webkit-text-stroke: 2px var(--ink); }
.step-content h3 { font-family: var(--font-display); font-size: 32px; margin-bottom: 8px; }

/* ── Pricing ── */
.section-pricing { padding: 100px 40px; max-width: 1400px; margin: 0 auto; width: 100%; }
.pricing-header { max-width: 650px; transform: rotate(-1deg); }
.pricing-header .section-intro { font-family: var(--font-mono); font-size: 14px; font-weight: 700; margin-top: 16px; }
.pricing-note {
  font-family: var(--font-mono); font-size: 11px; font-weight: 700;
  color: var(--burgundy); margin-top: 12px; text-transform: uppercase;
  letter-spacing: 0.06em; border-left: 3px solid var(--burgundy); padding-left: 10px;
}

.pricing-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px;
  margin-top: 50px; align-items: start;
}

.pricing-card {
  position: relative; display: flex; flex-direction: column; align-items: center;
  text-align: center; padding: 40px 28px 32px; transition: transform 0.3s var(--easing), box-shadow 0.3s;
  transform: rotate(1.2deg);
}
.pricing-card:nth-child(2) { transform: rotate(-0.8deg); }
.pricing-card:nth-child(3) { transform: rotate(1.5deg); }
.pricing-card:hover {
  transform: translate(-4px, -6px) rotate(0deg);
  box-shadow: 10px 10px 0 var(--burgundy);
}

.pricing-featured {
  border: 3px solid var(--burgundy);
  box-shadow: 8px 8px 0 var(--burgundy);
  background: rgba(234, 221, 207, 0.95);
}
.pricing-featured::before {
  content: ''; position: absolute; top: 0; left: 0; right: 0; height: 5px;
  background: var(--burgundy);
}

.pricing-badge {
  position: absolute; top: -16px; right: 16px;
  background: var(--burgundy); color: var(--cream); padding: 4px 14px;
  font-family: var(--font-mono); font-size: 10px; font-weight: 700;
  letter-spacing: 0.12em; text-transform: uppercase;
  border: 2px solid var(--ink); box-shadow: 3px 3px 0 var(--ink);
  transform: rotate(3deg);
}
.pricing-tier-1 .pricing-badge { background: var(--ink); }
.pricing-tier-3 .pricing-badge { background: var(--dust); color: var(--ink); }

.pricing-name {
  font-family: var(--font-display); font-size: clamp(32px, 4vw, 48px);
  line-height: 1; text-transform: lowercase; margin: 20px 0 12px;
}

.pricing-price {
  font-family: var(--font-display); font-size: clamp(50px, 7vw, 72px);
  line-height: 1; color: var(--burgundy); letter-spacing: -0.02em;
  margin-bottom: 4px;
}
.pricing-currency { font-size: 0.45em; color: var(--ink); vertical-align: super; letter-spacing: 0.05em; }

.pricing-custom {
  font-family: var(--font-serif); font-style: italic; font-size: clamp(24px, 3vw, 32px);
  color: var(--ink); font-weight: 700;
}

.pricing-flexi {
  font-family: var(--font-mono); font-size: 11px; font-weight: 700;
  color: var(--burgundy); text-transform: uppercase; letter-spacing: 0.08em;
  border: 1px dashed var(--burgundy); padding: 3px 10px; margin-bottom: 16px;
}

.pricing-details {
  list-style: none; padding: 0; margin: 16px 0 24px; width: 100%;
  border-top: 2px solid var(--ink);
}
.pricing-details li {
  font-family: var(--font-mono); font-size: 12px; font-weight: 700;
  padding: 10px 0; border-bottom: 1px solid rgba(24, 21, 17, 0.15);
  text-align: left; line-height: 1.5;
}
.pricing-details li::before {
  content: '✦ '; color: var(--burgundy);
}

.btn-pricing {
  display: inline-flex; align-items: center; justify-content: center;
  background: var(--ink); color: var(--cream); border: 2px solid var(--ink);
  font-family: var(--font-display); font-size: 20px; letter-spacing: 0.05em;
  padding: 12px 28px; margin-top: auto;
  box-shadow: 4px 4px 0 var(--burgundy);
  transition: transform 0.2s, box-shadow 0.2s, background 0.2s;
  text-decoration: none; width: 100%; text-align: center;
}
.btn-pricing:hover {
  transform: translate(-2px, -2px); box-shadow: 6px 6px 0 var(--burgundy);
  background: var(--burgundy);
}
.pricing-featured .btn-pricing {
  background: var(--burgundy); border-color: var(--burgundy);
}
.pricing-featured .btn-pricing:hover {
  background: var(--ink); border-color: var(--ink);
}

.pricing-extras {
  margin-top: 30px; padding: 24px 32px; display: flex; align-items: center; gap: 20px;
  transform: rotate(-0.7deg); border: 2px solid var(--ink);
}
.extras-label {
  font-family: var(--font-display); font-size: 48px; color: var(--burgundy);
  line-height: 1; flex-shrink: 0;
}
.extras-title {
  font-family: var(--font-display); font-size: clamp(22px, 3vw, 30px);
  text-transform: lowercase; margin-bottom: 6px;
}
.extras-content p {
  font-family: var(--font-mono); font-size: 12px; font-weight: 700; line-height: 1.6;
}
.extras-group {
  margin-top: 8px; color: var(--burgundy); font-style: italic;
}

.pricing-disclaimer {
  margin-top: 24px; padding: 24px 32px; display: flex; align-items: flex-start; gap: 16px;
  transform: rotate(0.5deg); border: 2px dashed var(--ink);
  box-shadow: 4px 4px 0 var(--dust); background: rgba(234, 221, 207, 0.7);
}
.disclaimer-icon {
  font-size: 24px; color: var(--burgundy); flex-shrink: 0; line-height: 1.4;
}
.pricing-disclaimer p {
  font-family: var(--font-mono); font-size: 13px; font-weight: 700; line-height: 1.6;
}

/* ── Contact & Marquee Fixing ── */
.section-contact { position: relative; margin-top: 60px; padding-top: 140px; width: 100%; overflow: visible; }
.marquee-wrapper { 
  position: absolute; top: 40px; 
  left: 50%; margin-left: -60vw; 
  width: 120vw; height: 120px; z-index: 0; transform: rotate(-2deg); 
  pointer-events: none; overflow: hidden; display: flex; 
}
.scrolling-bg-text { display: flex; width: max-content; background: var(--burgundy); border-top: 4px solid var(--ink); border-bottom: 4px solid var(--ink); }
.scrolling-bg-text span { font-family: var(--font-display); font-size: 80px; color: var(--cream); padding: 10px 30px 10px 0; white-space: nowrap; animation: marquee 12s linear infinite; }
@keyframes marquee { 0% { transform: translateX(0); } 100% { transform: translateX(-50%); } }

.ig-layout { position: relative; z-index: 2; display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center; background: var(--cream-light); }
.ig-text p { font-size: 16px; font-weight: bold; margin: 20px 0 40px; max-width: 400px; }
.btn-ig { display: inline-flex; align-items: center; justify-content: space-between; background: var(--ink); color: var(--cream); border: 2px solid var(--ink); font-family: var(--font-display); font-size: 24px; padding: 12px 24px; box-shadow: 4px 4px 0 var(--burgundy); transition: transform 0.2s, box-shadow 0.2s, background 0.2s; }
.btn-ig:hover { transform: translate(-2px, -2px); box-shadow: 6px 6px 0 var(--burgundy); background: var(--burgundy); }
.btn-arrow { margin-left: 20px; font-family: var(--font-mono); }
.ig-image-wrap { display: flex; justify-content: center; }
.ig-card { width: 320px; background: #fff; padding: 16px; border: var(--border-main); box-shadow: 12px 12px 0 rgba(0,0,0,0.1); transform: rotate(3deg); transition: transform 0.3s; }
.ig-card:hover { transform: rotate(0deg) scale(1.05); }
.ig-card img { height: 320px; border: 2px solid #eee; margin-bottom: 16px; }
.ig-ui { display: flex; justify-content: space-between; align-items: center; font-family: sans-serif; font-weight: bold; }
.ig-handle { font-size: 14px; color: #262626; }
.ig-follow { background: #0095f6; color: #fff; padding: 6px 16px; border-radius: 4px; font-size: 13px; }

/* ── Closing ── */
.section-closing { text-align: center; margin: 100px auto; max-width: 800px; }
.closing-ornament { font-size: 20px; color: var(--burgundy); margin-bottom: 20px; }
.closing-title { margin-bottom: 20px; }
.agreement-link {
  display: inline-block; margin-top: 16px;
  font-family: var(--font-mono); font-size: 11px; font-weight: 700;
  text-transform: uppercase; letter-spacing: 0.1em;
  color: var(--burgundy); border-bottom: 1px dashed var(--burgundy);
  padding-bottom: 2px; transition: color 0.2s, border-color 0.2s;
}
.agreement-link:hover { color: var(--ink); border-color: var(--ink); }

/* ── Agreement Popup ── */
.agreement-overlay {
  position: fixed; inset: 0; z-index: 9500;
  background: rgba(24, 21, 17, 0.9); backdrop-filter: blur(8px);
  display: flex; align-items: center; justify-content: center;
  opacity: 1; visibility: visible; pointer-events: auto;
  transition: opacity 0.4s var(--easing), visibility 0.4s;
}
.agreement-overlay.hidden { opacity: 0; visibility: hidden; pointer-events: none; }
.agreement-box {
  position: relative; width: 90vw; max-width: 700px; max-height: 85vh;
  overflow-y: auto; padding: 48px 40px 40px; pointer-events: auto;
}
.agreement-close {
  position: absolute; top: 16px; right: 16px;
  background: var(--cream); border: var(--border-main); color: var(--ink);
  font-family: var(--font-mono); font-weight: bold; font-size: 18px;
  width: 40px; height: 40px; box-shadow: 3px 3px 0 var(--burgundy);
  transition: transform 0.2s, background 0.2s; cursor: none;
}
@media (pointer: coarse) { .agreement-close { cursor: auto; } }
.agreement-close:hover {
  transform: translate(-2px, -2px); box-shadow: 5px 5px 0 var(--burgundy);
  background: var(--cream-light);
}
.agreement-title {
  font-family: var(--font-display); font-size: clamp(28px, 5vw, 48px);
  line-height: 0.95; text-transform: lowercase; margin-bottom: 24px;
}
.agreement-title em { font-family: var(--font-serif); color: var(--burgundy); font-style: italic; }
.agreement-body {
  font-family: var(--font-mono); font-size: 12px; font-weight: 700; line-height: 1.7;
}
.agreement-body ol {
  list-style: none; counter-reset: rules; padding: 0; margin: 0;
}
.agreement-body ol li {
  counter-increment: rules; padding: 12px 0; border-bottom: 1px solid rgba(24, 21, 17, 0.12);
}
.agreement-body ol li::before {
  content: counter(rules, upper-roman) '. '; font-family: var(--font-display);
  font-size: 16px; color: var(--burgundy); margin-right: 6px;
}
.agreement-body .agreement-footer {
  margin-top: 20px; padding-top: 16px; border-top: 2px solid var(--ink);
  font-style: italic; color: var(--burgundy);
}
.agreement-box::-webkit-scrollbar { width: 10px; }
.agreement-box::-webkit-scrollbar-track { background: var(--cream); border-left: 2px solid var(--ink); }
.agreement-box::-webkit-scrollbar-thumb { background: var(--burgundy); border-left: 2px solid var(--ink); }
.agreement-box::-webkit-scrollbar-thumb:hover { background: var(--ink); }

/* ── Lightbox (Dynamic View) ── */
.lightbox {
  position: fixed; inset: 0; z-index: 9000; background: rgba(24, 21, 17, 0.95); backdrop-filter: blur(8px);
  display: flex; align-items: center; justify-content: center; opacity: 1; visibility: visible;
  transition: opacity 0.4s var(--easing), visibility 0.4s; pointer-events: auto;
}
.lightbox.hidden { opacity: 0; visibility: hidden; pointer-events: none; }

.lightbox-close, .lightbox-nav {
  position: absolute; background: var(--cream); border: var(--border-main); color: var(--ink);
  font-family: var(--font-mono); font-weight: bold; font-size: 20px;
  width: 50px; height: 50px; cursor: none; box-shadow: 3px 3px 0 var(--burgundy);
  transition: transform 0.2s, background 0.2s; z-index: 9001;
}
.lightbox-close { top: 30px; right: 30px; }
.lightbox-prev { left: 40px; top: 50%; transform: translateY(-50%); }
.lightbox-next { right: 40px; top: 50%; transform: translateY(-50%); }

@media (pointer: coarse) { .lightbox-close, .lightbox-nav { cursor: auto; } }
.lightbox-close:hover, .lightbox-nav:hover { transform: translate(-2px, -2px) scale(1.05); box-shadow: 5px 5px 0 var(--burgundy); background: var(--cream-light); }
.lightbox-prev:hover, .lightbox-next:hover { transform: translateY(-50%) translate(-2px, -2px) scale(1.05); }

/* Hide arrows and counter when in Single View mode */
.lightbox.single-view .lightbox-nav,
.lightbox.single-view #lb-counter {
  display: none !important;
}

.polaroid-viewer {
  background: var(--cream); 
  padding: 20px 20px 60px; 
  display: inline-block;
  border: var(--border-main); 
  box-shadow: 10px 10px 0 var(--ink);
  transform: scale(1) translateY(0); 
  transition: transform 0.5s var(--easing-spring); 
  z-index: 9000;
  pointer-events: auto;
}

.lightbox.hidden .polaroid-viewer { 
  transform: scale(0.92) translateY(20px); 
}

.pv-frame { 
  border: 2px solid var(--ink);
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--ink);
}

.pv-frame img { 
  pointer-events: none;
  width: auto; 
  height: auto;
  max-width: calc(95vw - 44px);
  max-height: 70vh; 
  object-fit: contain;
  display: block;
}

.pv-label { 
  margin-top: 16px; 
  display: flex; 
  justify-content: space-between; 
  font-weight: bold; 
  font-size: 12px; 
}

/* ── Archive Grid Overlay ── */
#archive-grid { z-index: 8500; } 
.grid-inner {
  width: 90vw;
  max-width: 1200px;
  max-height: 90vh;
  overflow-y: auto;
  padding: 40px;
  pointer-events: auto;
}
#grid-title {
  font-family: var(--font-display);
  font-size: clamp(30px, 6vw, 50px);
  text-align: center;
  margin-bottom: 30px;
  letter-spacing: 0.05em;
}
.archive-thumbnail-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
  gap: 15px;
}
@media (min-width: 600px) {
  .archive-thumbnail-grid {
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 20px;
  }
}
.grid-thumb {
  width: 100%;
  aspect-ratio: 1; 
  object-fit: cover;
  border: 2px solid var(--ink);
  transition: transform 0.2s var(--easing), box-shadow 0.2s;
  cursor: none; 
}
@media (pointer: coarse) { .grid-thumb { cursor: auto; } }
.grid-thumb:hover {
  transform: translate(-4px, -4px);
  box-shadow: 6px 6px 0 var(--burgundy);
}
.grid-inner::-webkit-scrollbar {
  width: 12px;
}
.grid-inner::-webkit-scrollbar-track {
  background: var(--cream);
  border-left: 2px solid var(--ink);
}
.grid-inner::-webkit-scrollbar-thumb {
  background: var(--burgundy);
  border-left: 2px solid var(--ink);
}
.grid-inner::-webkit-scrollbar-thumb:hover {
  background: var(--ink);
}

/* ── Mobile UI Perfect Centering & Layout ── */
@media (max-width: 1000px) {
  #main-nav { flex-direction: column; padding: 15px 16px; align-items: center; gap: 15px; }
  .nav-logo { order: 1; }
  .nav-controls { position: absolute; top: 15px; right: 16px; width: auto; justify-content: flex-end; }
  .nav-links { order: 2; position: relative; transform: none; left: auto; top: auto; flex-wrap: wrap; justify-content: center; width: 100%; gap: 12px; }
  .nav-info { display: none; }
  
  .hero-text-layer { width: 90%; text-align: center; padding: 30px 20px; margin: 0 auto; }
  .hero-eyebrow { margin: 0 auto 10px auto; }
  
  .section-works, .section-process, .section-about, .section-contact, .section-pricing { padding: 50px 15px; width: 100%; }

  .pricing-grid { grid-template-columns: 1fr; gap: 24px; }
  .pricing-card, .pricing-card:nth-child(2), .pricing-card:nth-child(3) { transform: rotate(0); }
  .pricing-card:hover { transform: translate(-2px, -4px) rotate(0); }
  .pricing-header { transform: rotate(0); text-align: center; margin: 0 auto; }
  .pricing-disclaimer { flex-direction: column; align-items: center; text-align: center; transform: rotate(0); }
  .pricing-extras { flex-direction: column; text-align: center; transform: rotate(0); }
  
  .about-portrait { display: none; }
  
  .glass-container { padding: 25px 15px; margin: 0 auto 30px auto; display: flex; flex-direction: column; align-items: center; text-align: center; width: 100%; }
  
  .section-label { margin: 0 auto 20px auto; }
  .works-header { text-align: center; margin: 0 auto; }
  .section-intro, .about-content p, .ig-text p { text-align: center; margin: 0 auto 20px auto; max-width: 100%; }
  
  .works-featured, .about-grid, .ig-layout { grid-template-columns: 1fr; gap: 30px; text-align: center; width: 100%; }
  .featured-large { height: 350px; }
  .featured-meta { flex-direction: column; align-items: center; gap: 8px; }
  
  .manifesto-tags { justify-content: center; width: 100%; }
  
  .process-steps { text-align: center; margin: 30px auto 0 auto; width: 100%; }
  .process-step, .process-step.reverse { grid-template-columns: 1fr; text-align: center; align-items: center; }
  .step-num { display: none; }
  
  .section-contact { padding-top: 120px; } 
  .scrolling-bg-text span { font-size: 50px; padding-right: 20px; }
  
  .ig-image-wrap { width: 100%; }
  .ig-card { width: 100%; max-width: 300px; margin: 0 auto; transform: rotate(0); }

  .section-closing.glass-container { width: 85%; padding: 30px 15px; margin-bottom: 50px; }
  .closing-title { font-size: clamp(30px, 10vw, 50px); margin-bottom: 15px; }

  .lightbox-prev, .lightbox-next { padding: 15px; width: 50px; height: 50px; border-radius: 5px; }
  .lightbox-prev { left: 15px; }
  .lightbox-next { right: 15px; }
  .lightbox-close { top: 15px; right: 15px; width: 40px; height: 40px; border-radius: 5px; }
}