/* AURELIA V7 // MORPH ATELIER — Multi-Archetype Design System, Directional 3D Morphs & Security Layers */

:root {
  --canvas: #FFFFFF;
  --alabaster: #F7F5F0;
  --travertine: #EFECE5;
  --obsidian: #0B1424;
  --forest: #0B1424;
  --forest-2: #162238;
  --gold: #B8924A;
  --gold-light: #E2C98F;
  --cream: #FFFFFF;
  --cream-2: #F7F5F0;
  --ink: #0B1424;
  --ink-muted: #525B6B;
  --paper: #FFFFFF;
  --line: rgba(11, 20, 36, 0.12);
}

* {
  box-sizing: border-box;
}

html {
  background-color: var(--cream);
  color: var(--ink);
}

html.lenis,
html.lenis body {
  height: auto;
  scroll-behavior: auto !important;
}

.lenis.lenis-smooth {
  scroll-behavior: auto !important;
}

.lenis.lenis-smooth [data-lenis-prevent] {
  overscroll-behavior: contain;
}

body {
  margin: 0;
  font-family: 'Space Grotesk', system-ui, -apple-system, sans-serif;
  background-color: var(--cream);
  color: var(--ink);
  overflow-x: clip;
  -webkit-font-smoothing: antialiased;
}

.font-display {
  font-family: 'Fraunces', Georgia, serif;
}

.font-sans {
  font-family: 'Space Grotesk', system-ui, -apple-system, sans-serif;
}

.font-mono {
  font-family: 'JetBrains Mono', ui-monospace, SFMono-Regular, monospace;
}

::selection {
  background: var(--gold);
  color: var(--forest);
}

/* Luminous Exhibition Gallery Canvas & Precision Hairline Geometry */
.atelier-hero-bg {
  background:
    radial-gradient(circle at 80% 18%, rgba(184, 146, 74, 0.08) 0%, transparent 44%),
    linear-gradient(180deg, #FFFFFF 0%, #FAF9F6 100%);
}

.atelier-grid-pattern {
  background-image:
    linear-gradient(to right, rgba(11, 20, 36, 0.045) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(11, 20, 36, 0.045) 1px, transparent 1px);
  background-size: 64px 64px;
}

.gallery-hairline-grid {
  background-image:
    linear-gradient(to right, rgba(11, 20, 36, 0.05) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(11, 20, 36, 0.05) 1px, transparent 1px);
  background-size: 56px 56px;
}

.exhibition-card {
  transition:
    transform 0.34s cubic-bezier(0.22, 1, 0.36, 1),
    border-color 0.25s ease,
    box-shadow 0.34s cubic-bezier(0.22, 1, 0.36, 1);
}

.exhibition-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 24px 48px -26px rgba(11, 20, 36, 0.18);
}

.magnetic-pill {
  transition: transform 0.28s cubic-bezier(0.22, 1, 0.36, 1), background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.magnetic-pill:hover {
  transform: translateY(-1px);
}

/* Marquee */
.marquee-track {
  display: flex;
  width: max-content;
  animation: marquee-scroll 34s linear infinite;
}

@keyframes marquee-scroll {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

/* Macro Close-Up Lens (HD Photography & Cinema Video Focus) */
.macro-zoom-lens {
  transition: transform 0.95s cubic-bezier(0.16, 1, 0.3, 1), filter 0.6s ease;
  will-change: transform;
  transform-origin: center center;
}

.group:hover .macro-zoom-lens,
.macro-active .macro-zoom-lens {
  transform: scale(1.42);
}

.macro-lens-deep {
  transform: scale(1.75) !important;
  filter: contrast(1.06) saturate(1.08);
}

/* Smooth Floating & Settling Morph Transitions (Zero chaotic spinning or thrown elements) */
.camera-z-viewport {
  perspective: 1600px;
  transform-style: preserve-3d;
  position: relative;
}

.morph-stage-transition {
  transition:
    transform 1.15s cubic-bezier(0.16, 1, 0.3, 1),
    opacity 0.72s cubic-bezier(0.16, 1, 0.3, 1),
    filter 0.9s cubic-bezier(0.16, 1, 0.3, 1);
  transform-style: preserve-3d;
  will-change: transform, opacity, filter;
}

.morph-stage-in {
  transform: translate3d(0, 0, 0) scale(1) rotateX(0deg) rotateY(0deg) rotateZ(0deg);
  opacity: 1;
  filter: blur(0px);
}

/* 8 Serene Floating Directional Transitions */
.morph-out-z-tunnel-180 {
  transform: scale(0.96) translateZ(-28px);
  opacity: 0.14;
  filter: blur(2px);
}

.morph-out-vertical-monolith-rise {
  transform: translateY(-22px) rotateX(2.5deg) scale(0.98);
  opacity: 0.14;
  filter: blur(2px);
}

.morph-out-orbital-sweep-left {
  transform: translateX(-28px) rotateY(-2.5deg) scale(0.98);
  opacity: 0.14;
  filter: blur(2px);
}

.morph-out-orbital-sweep-right {
  transform: translateX(28px) rotateY(2.5deg) scale(0.98);
  opacity: 0.14;
  filter: blur(2px);
}

.morph-out-helical-spiral-zoom {
  transform: translateY(-16px) scale(0.975);
  opacity: 0.14;
  filter: blur(2px);
}

.morph-out-iris-aperture-fold {
  transform: scale(0.985);
  opacity: 0.08;
  filter: blur(3px);
}

.morph-out-prism-diagonal-vault {
  transform: translate(-18px, 12px) scale(0.98);
  opacity: 0.14;
  filter: blur(2px);
}

.morph-out-horizon-glide-descent {
  transform: translateY(20px) rotateX(-2deg) scale(0.985);
  opacity: 0.14;
  filter: blur(2px);
}

/* Archetype-Specific Tonal Surfaces (Smooth Lenis-Grade Background Crossfades) */
.stage-bg-cream,
.stage-bg-gold,
.stage-bg-forest,
.stage-bg-clinical,
.stage-bg-swiss,
.stage-bg-obsidian {
  transition: background 1.1s cubic-bezier(0.16, 1, 0.3, 1), color 0.65s ease;
}

.stage-bg-cream {
  background: linear-gradient(155deg, #F8F6F1 0%, #EFE9DC 100%);
  color: #0B1A2F;
}

.stage-bg-gold {
  background: linear-gradient(155deg, #1B1408 0%, #463515 52%, #6E5423 100%);
  color: #FFFDF8;
}

.stage-bg-forest {
  background: linear-gradient(155deg, #07111F 0%, #0B1A2F 55%, #16304E 100%);
  color: #F8F6F1;
}

.stage-bg-clinical {
  background: linear-gradient(155deg, #F2F8F9 0%, #E3EEF0 100%);
  color: #0B1A2F;
}

.stage-bg-swiss {
  background: linear-gradient(180deg, #F4F2EC 0%, #EAE6DC 100%);
  color: #0B1A2F;
}

.stage-bg-obsidian {
  background: radial-gradient(circle at 20% 20%, #192B44 0%, #07111F 60%, #050B14 100%);
  color: #F8F6F1;
}

/* Smooth Progress Shimmer */
.gold-shimmer {
  background: linear-gradient(90deg, #C6A969 0%, #E7D3A0 50%, #C6A969 100%);
  background-size: 200% 100%;
  animation: gold-flow 3s linear infinite;
}

@keyframes gold-flow {
  0% { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

/* 4-Layer Anti-Screenshot, Anti-Download & Anti-Reverse-Engineering Shield */
.protected-preview-container {
  position: relative;
  user-select: none;
  -webkit-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
  -webkit-touch-callout: none;
}

.protected-preview-container img,
.protected-preview-container video {
  -webkit-user-drag: none;
  user-drag: none;
  pointer-events: none;
}

.rendition-canvas-wrap {
  transition: filter 0.08s linear, opacity 0.08s linear;
}

.security-blur-active .rendition-canvas-wrap {
  filter: blur(36px) brightness(0.16) contrast(1.25);
  pointer-events: none;
}

.security-shield-overlay {
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.08s linear;
}

.security-blur-active .security-shield-overlay {
  opacity: 1;
  pointer-events: auto;
}

.watermark-mesh {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 30;
  overflow: hidden;
  mix-blend-mode: normal;
}

.watermark-canvas {
  width: 100%;
  height: 100%;
  display: block;
}

/* Custom Scrollbar inside Studio */
.atelier-scroll::-webkit-scrollbar {
  width: 6px;
  height: 6px;
}

.atelier-scroll::-webkit-scrollbar-track {
  background: rgba(11, 26, 47, 0.06);
}

.atelier-scroll::-webkit-scrollbar-thumb {
  background: rgba(198, 169, 105, 0.65);
  border-radius: 9999px;
}

/* Tier III Video Card Frame */
.tier3-video-frame {
  position: relative;
  background: #07111F;
}

.tier3-video-frame video {
  transition: transform 0.85s cubic-bezier(0.16, 1, 0.3, 1);
}

.group:hover .tier3-video-frame video {
  transform: scale(1.06);
}

/* Strict Print Lock for Unpaid / Protected Previews */
@media print {
  body.unpaid-print-lock * {
    display: none !important;
  }

  body.unpaid-print-lock::after {
    content: "PROTECTED RENDITION — PRINTING, SCREEN CAPTURE & EXPORT DISABLED UNTIL PAYMENT IS COMPLETED (AURELIA V7 // MORPH ATELIER)";
    display: block !important;
    padding: 4rem 2rem;
    font-family: 'Space Grotesk', sans-serif;
    font-size: 1.5rem;
    font-weight: 700;
    color: #0B1A2F;
    text-align: center;
  }
}
