/* ==========================================================================
   1. CORE VARIABLES & THEMING
   ========================================================================== */
:root {
  --bg-canvas: hsl(210, 11%, 5%);
  --bg-panel: hsl(210, 11%, 8%);
  --bg-card: hsl(210, 11%, 12%);
  --border-color: hsl(210, 11%, 16%);
  --border-focus: hsl(36, 30%, 45%);
  
  --text-primary: hsl(0, 0%, 92%);
  --text-secondary: hsl(210, 8%, 68%);
  --text-muted: hsl(210, 6%, 45%);
  
  --accent-gold: hsl(36, 35%, 58%);
  --accent-gold-hover: hsl(36, 35%, 68%);
  --accent-gold-glow: hsla(36, 35%, 58%, 0.15);
  
  --font-sans: 'Outfit', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-serif: 'Cormorant Garamond', Georgia, serif;
  
  --transition-smooth: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

/* ==========================================================================
   2. GLOBAL RESET & BASE STYLES
   ========================================================================== */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  background-color: var(--bg-canvas);
  background-image: 
    radial-gradient(at 0% 0%, hsla(36, 40%, 12%, 0.03) 0px, transparent 50%),
    radial-gradient(at 100% 100%, hsla(210, 10%, 12%, 0.03) 0px, transparent 50%);
  color: var(--text-primary);
  font-family: var(--font-sans);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 8px;
}
::-webkit-scrollbar-track {
  background: var(--bg-canvas);
}
::-webkit-scrollbar-thumb {
  background: var(--border-color);
  border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
  background: var(--accent-gold);
}

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

/* Typography */
h1, h2, h3, h4, .font-serif {
  font-family: var(--font-serif);
  font-weight: 300;
  letter-spacing: 0.02em;
}

p, .font-sans {
  font-family: var(--font-sans);
  font-weight: 300;
}

.text-center { text-align: center; }
.text-muted { color: var(--text-muted); }

/* Buttons */
.btn {
  display: inline-block;
  padding: 0.75rem 1.75rem;
  font-family: var(--font-sans);
  font-size: 0.85rem;
  font-weight: 400;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  text-decoration: none;
  border-radius: 4px;
  cursor: pointer;
  transition: var(--transition-smooth);
}

.btn-gold {
  background-color: var(--accent-gold);
  color: var(--bg-canvas);
  border: 1px solid var(--accent-gold);
}

.btn-gold:hover {
  background-color: var(--accent-gold-hover);
  border-color: var(--accent-gold-hover);
  box-shadow: 0 0 15px var(--accent-gold-glow);
  transform: translateY(-2px);
}

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

.btn-outline:hover {
  border-color: var(--accent-gold);
  color: var(--accent-gold);
  box-shadow: 0 0 10px var(--accent-gold-glow);
}

.btn-text {
  color: var(--accent-gold);
  padding: 0.75rem 0;
  border: none;
  background: none;
}

.btn-text:hover {
  color: var(--accent-gold-hover);
  padding-left: 5px;
}

.btn-large {
  padding: 1rem 2.5rem;
  font-size: 0.95rem;
}

.btn-block {
  display: block;
  width: 100%;
  text-align: center;
}

/* ==========================================================================
   3. HEADER & NAVIGATION
   ========================================================================== */
.header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  padding: 1.25rem 2rem;
  background: hsla(210, 11%, 5%, 0.75);
  backdrop-filter: blur(15px);
  -webkit-backdrop-filter: blur(15px);
  border-bottom: 1px solid var(--border-color);
  display: flex;
  justify-content: space-between;
  align-items: center;
  z-index: 100;
}

.logo {
  display: flex;
  flex-direction: column;
}

.logo-sub {
  font-size: 0.65rem;
  text-transform: uppercase;
  letter-spacing: 0.25em;
  color: var(--accent-gold);
}

.logo-main {
  font-family: var(--font-serif);
  font-size: 1.4rem;
  letter-spacing: 0.15em;
  font-weight: 400;
}

.nav {
  display: flex;
  align-items: center;
  gap: 2rem;
}

.nav-link {
  color: var(--text-secondary);
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  text-decoration: none;
  transition: var(--transition-smooth);
}

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

/* ==========================================================================
   4. HERO SECTION
   ========================================================================== */
.hero-section {
  padding: 10rem 0 6rem;
  min-height: 90vh;
  display: flex;
  align-items: center;
}

.hero-container {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 4rem;
  align-items: center;
}

.hero-title {
  font-size: 4.5rem;
  line-height: 1.1;
  margin-bottom: 0.5rem;
  color: var(--text-primary);
}

.hero-subtitle {
  font-size: 1.1rem;
  font-style: italic;
  color: var(--accent-gold);
  margin-bottom: 2rem;
  font-family: var(--font-serif);
}

.hero-description {
  color: var(--text-secondary);
  font-size: 1.05rem;
  margin-bottom: 2.5rem;
  max-width: 580px;
}

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

.hero-image-wrapper {
  display: flex;
  justify-content: center;
}

.image-border-glow {
  padding: 10px;
  background: linear-gradient(135deg, var(--border-color), hsla(36, 35%, 58%, 0.15), var(--border-color));
  border-radius: 8px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
  transition: var(--transition-smooth);
}

.image-border-glow:hover {
  box-shadow: 0 15px 40px var(--accent-gold-glow);
  transform: scale(1.01);
}

.hero-image {
  max-width: 100%;
  height: 480px;
  object-fit: cover;
  border-radius: 4px;
  display: block;
}

/* ==========================================================================
   5. NARRATIVE SECTION (YUCATAN)
   ========================================================================== */
.narrative-section {
  padding: 8rem 0;
  background: var(--bg-panel);
  border-top: 1px solid var(--border-color);
  border-bottom: 1px solid var(--border-color);
}

.narrative-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 5rem;
  align-items: center;
}

.section-title {
  font-size: 2.8rem;
  line-height: 1.2;
  margin-bottom: 0.5rem;
}

.section-subtitle {
  font-size: 1.1rem;
  color: var(--accent-gold);
  margin-bottom: 2rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.narrative-p {
  color: var(--text-secondary);
  font-size: 1.05rem;
  margin-bottom: 1.5rem;
}

.limestone-texture-card {
  position: relative;
  height: 400px;
  border-radius: 8px;
  overflow: hidden;
  background-color: var(--bg-card);
  background-image: radial-gradient(circle, hsla(0, 0%, 100%, 0.03) 1px, transparent 1px);
  background-size: 20px 20px;
  border: 1px solid var(--border-color);
}

.texture-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(to bottom, transparent, rgba(0,0,0,0.85));
  z-index: 1;
}

.texture-text {
  position: absolute;
  bottom: 2.5rem;
  left: 2.5rem;
  right: 2.5rem;
  z-index: 2;
}

.texture-text .number {
  display: block;
  font-family: var(--font-serif);
  font-size: 4.5rem;
  color: var(--accent-gold);
  line-height: 1;
}

.texture-text .label {
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--text-secondary);
}

/* ==========================================================================
   6. POMELLI GALLERY SECTION
   ========================================================================== */
.photoshoot-section {
  padding: 8rem 0;
}

.section-header {
  margin-bottom: 3.5rem;
}

.section-header p {
  max-width: 650px;
  margin: 1rem auto 0;
  color: var(--text-secondary);
}

.gallery-tabs {
  display: flex;
  justify-content: center;
  gap: 1.5rem;
  margin-bottom: 3rem;
}

.gallery-tab {
  background: none;
  border: none;
  padding: 0.5rem 1.5rem;
  font-family: var(--font-sans);
  color: var(--text-secondary);
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  cursor: pointer;
  border-bottom: 2px solid transparent;
  transition: var(--transition-smooth);
}

.gallery-tab:hover {
  color: var(--text-primary);
}

.gallery-tab.active {
  color: var(--accent-gold);
  border-bottom-color: var(--accent-gold);
}

.gallery-view {
  position: relative;
  max-width: 900px;
  margin: 0 auto;
  border-radius: 8px;
  overflow: hidden;
  border: 1px solid var(--border-color);
  box-shadow: 0 15px 40px rgba(0,0,0,0.6);
}

.gallery-slide {
  display: none;
  position: relative;
  height: 600px;
}

.gallery-slide.active {
  display: block;
  animation: fadeIn 0.8s ease forwards;
}

.gallery-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.gallery-caption {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  padding: 2.5rem;
  background: linear-gradient(to top, rgba(0,0,0,0.9), transparent);
  color: var(--text-primary);
}

.gallery-caption h4 {
  font-size: 1.5rem;
  margin-bottom: 0.35rem;
  color: var(--accent-gold);
}

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

/* ==========================================================================
   7. GENIE 3 SIMULATION SECTION
   ========================================================================== */
.genie-section {
  padding: 8rem 0;
  background: var(--bg-panel);
  border-top: 1px solid var(--border-color);
  border-bottom: 1px solid var(--border-color);
}

.genie-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 5rem;
  align-items: center;
}

.genie-visual-box {
  display: flex;
  justify-content: center;
}

.genie-simulator {
  position: relative;
  width: 100%;
  max-width: 480px;
  height: 600px;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid var(--border-color);
  background-color: #0b0f14;
  box-shadow: 0 20px 40px rgba(0,0,0,0.7);
}

.simulator-canvas-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 10;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 1.5rem;
  pointer-events: none;
}

.sim-controls, .sim-status, .btn-play-sim {
  pointer-events: auto;
}

.sim-controls {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.sim-badge {
  background: rgba(36, 35, 58, 0.4);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(255,255,255,0.08);
  padding: 0.25rem 0.65rem;
  border-radius: 3px;
  font-size: 0.65rem;
  letter-spacing: 0.1em;
  color: var(--accent-gold);
}

.sim-fps {
  font-family: monospace;
  font-size: 0.7rem;
  color: #3b82f6;
  text-shadow: 0 0 5px rgba(59, 130, 246, 0.3);
}

.sim-status {
  background: rgba(0,0,0,0.6);
  backdrop-filter: blur(5px);
  -webkit-backdrop-filter: blur(5px);
  padding: 1rem;
  border-radius: 6px;
  border: 1px solid var(--border-color);
  margin-top: auto;
  margin-bottom: 1rem;
}

.sim-status h3 {
  font-size: 1.2rem;
  color: var(--text-primary);
  margin-bottom: 0.2rem;
}

.sim-status p {
  font-size: 0.75rem;
  color: var(--text-secondary);
}

.btn-play-sim {
  align-self: center;
  font-weight: 500;
  padding: 0.65rem 1.25rem;
  font-size: 0.8rem;
  background: var(--bg-canvas);
  color: var(--text-primary);
  border: 1px solid var(--accent-gold);
  border-radius: 30px;
}

.btn-play-sim:hover {
  background: var(--accent-gold);
  color: var(--bg-canvas);
  box-shadow: 0 0 15px var(--accent-gold-glow);
}

.sim-world-view {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
}

.world-bg {
  position: absolute;
  top: -10%;
  left: -10%;
  width: 120%;
  height: 120%;
  background: linear-gradient(180deg, #020408 0%, #0d1627 60%, #152d4e 100%);
  transition: transform 0.2s ease-out;
}

.world-stars {
  position: absolute;
  top: -5%;
  left: -5%;
  width: 110%;
  height: 60%;
  background-image: 
    radial-gradient(1px 1px at 10px 30px, #fff, transparent),
    radial-gradient(1px 1px at 50px 70px, rgba(255,255,255,0.5), transparent),
    radial-gradient(2px 2px at 150px 110px, #ffde8a, transparent),
    radial-gradient(1.5px 1.5px at 280px 40px, #fff, transparent);
  background-size: 320px 320px;
  opacity: 0.6;
  transition: transform 0.3s ease-out;
}

.world-sculpture {
  position: absolute;
  top: 40%;
  left: 50%;
  transform: translate(-50%, -50%) scale(0.7);
  width: 320px;
  height: 320px;
  background-image: url('assets/flow_noir.jpg');
  background-size: contain;
  background-position: center;
  background-repeat: no-repeat;
  border-radius: 50%;
  mask-image: radial-gradient(circle, black 60%, transparent 100%);
  -webkit-mask-image: radial-gradient(circle, black 60%, transparent 100%);
  filter: drop-shadow(0 0 10px rgba(0,0,0,0.8)) brightness(0.6);
  z-index: 2;
  transition: transform 0.1s ease-out, filter 0.5s ease;
}

.world-waves {
  position: absolute;
  bottom: 0;
  left: -20%;
  width: 140%;
  height: 35%;
  background: linear-gradient(180deg, rgba(21, 45, 78, 0.4) 0%, rgba(13, 22, 39, 0.8) 100%);
  backdrop-filter: blur(2px);
  -webkit-backdrop-filter: blur(2px);
  border-top: 1px solid rgba(255,255,255,0.05);
  border-radius: 50% 50% 0 0 / 20px 20px 0 0;
  z-index: 3;
  transition: transform 0.15s ease-out;
}

/* Wavy motion simulation when active */
.genie-simulator.active .world-bg {
  animation: seaGradient 10s ease-in-out infinite alternate;
}

.genie-simulator.active .world-sculpture {
  animation: breatheSculpture 6s ease-in-out infinite;
  filter: drop-shadow(0 0 20px rgba(36, 35, 58, 0.3)) brightness(0.95);
}

.genie-simulator.active .world-waves {
  animation: waveMotion 4s ease-in-out infinite alternate;
}

.genie-simulator.active .world-stars {
  animation: cosmicRotation 60s linear infinite;
}

.genie-p {
  color: var(--text-secondary);
  font-size: 1.05rem;
  margin-bottom: 1.5rem;
}

.genie-prompt-recipe {
  margin-top: 2rem;
  padding: 1.25rem;
  background: var(--bg-card);
  border-left: 3px solid var(--accent-gold);
  border-radius: 0 6px 6px 0;
  border-top: 1px solid var(--border-color);
  border-right: 1px solid var(--border-color);
  border-bottom: 1px solid var(--border-color);
}

.genie-prompt-recipe strong {
  display: block;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--accent-gold);
  margin-bottom: 0.5rem;
}

.genie-prompt-recipe code {
  display: block;
  font-family: monospace;
  font-size: 0.85rem;
  color: var(--text-primary);
  word-break: break-all;
}

/* ==========================================================================
   8. ACQUIRE & NEWSLETTER SECTION
   ========================================================================== */
.newsletter-section {
  padding: 8rem 0;
}

.newsletter-container {
  display: flex;
  justify-content: center;
}

.newsletter-card {
  width: 100%;
  max-width: 600px;
  background: var(--bg-panel);
  border: 1px solid var(--border-color);
  border-radius: 8px;
  padding: 3.5rem;
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.4);
}

.etsy-button-center {
  display: flex;
  justify-content: center;
  margin: 2rem 0;
}

.card-divider {
  border: 0;
  height: 1px;
  background: linear-gradient(to right, transparent, var(--border-color), transparent);
  margin: 2.5rem 0;
}

.signup-form {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.form-group {
  position: relative;
}

.form-input {
  width: 100%;
  padding: 1rem 1.25rem;
  background: var(--bg-canvas);
  border: 1px solid var(--border-color);
  border-radius: 4px;
  color: var(--text-primary);
  font-family: var(--font-sans);
  font-size: 0.95rem;
  outline: none;
  transition: var(--transition-smooth);
}

.form-input:focus {
  border-color: var(--accent-gold);
  box-shadow: 0 0 8px var(--accent-gold-glow);
}

.form-feedback {
  margin-top: 1.5rem;
  padding: 1rem;
  background: rgba(16, 185, 129, 0.1);
  border: 1px solid rgba(16, 185, 129, 0.2);
  border-radius: 4px;
  color: hsl(140, 48%, 65%);
  font-size: 0.9rem;
  text-align: center;
  transition: var(--transition-smooth);
}

.form-feedback.hidden {
  display: none;
}

.success-icon {
  margin-right: 0.5rem;
  font-weight: bold;
}

/* ==========================================================================
   9. FOOTER
   ========================================================================== */
.footer {
  padding: 4rem 2rem;
  background: hsl(210, 11%, 3%);
  border-top: 1px solid var(--border-color);
  text-align: center;
}

.footer p {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 0.5rem;
}

.footer-note {
  font-size: 0.75rem !important;
  max-width: 650px;
  margin: 1.5rem auto 0;
  line-height: 1.6;
}

.footer-note code {
  color: var(--accent-gold);
  font-family: monospace;
}

/* ==========================================================================
   10. ANIMATIONS & RESPONSIVENESS
   ========================================================================== */
@keyframes fadeIn {
  from { opacity: 0; transform: scale(0.98); }
  to { opacity: 1; transform: scale(1); }
}

@keyframes seaGradient {
  0% { background-position: 50% 0%; }
  100% { background-position: 50% 100%; }
}

@keyframes waveMotion {
  0% { transform: translateY(0) scaleY(1); }
  100% { transform: translateY(6px) scaleY(1.05); }
}

@keyframes breatheSculpture {
  0% { transform: translate(-50%, -50%) scale(0.7) translateY(0); }
  50% { transform: translate(-50%, -50%) scale(0.71) translateY(-5px); }
  100% { transform: translate(-50%, -50%) scale(0.7) translateY(0); }
}

@keyframes cosmicRotation {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

/* ==========================================================================
   8.5 DUAL HERO IMAGES & SELECTED ARCHIVE
   ========================================================================== */
.hero-images-dual {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
  align-items: center;
}

.primary-view, .alt-view {
  position: relative;
}

.alt-img {
  height: 380px !important;
}

.image-tag {
  position: absolute;
  bottom: 1.25rem;
  left: 1.25rem;
  background: rgba(11, 15, 20, 0.7);
  backdrop-filter: blur(5px);
  -webkit-backdrop-filter: blur(5px);
  border: 1px solid var(--border-color);
  color: var(--accent-gold);
  font-size: 0.65rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  padding: 0.25rem 0.65rem;
  border-radius: 3px;
  z-index: 5;
}

.archive-section {
  padding: 8rem 0;
  border-top: 1px solid var(--border-color);
}

.archive-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2.5rem;
}

.archive-card {
  background: var(--bg-panel);
  border: 1px solid var(--border-color);
  border-radius: 8px;
  overflow: hidden;
  transition: var(--transition-smooth);
}

.archive-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.4);
  border-color: hsla(36, 35%, 58%, 0.3);
}

.archive-img-wrapper {
  position: relative;
  height: 320px;
  overflow: hidden;
  background: #000;
}

.archive-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: var(--transition-smooth);
  opacity: 0.85;
}

.archive-card:hover .archive-img {
  transform: scale(1.03);
  opacity: 1;
}

.archive-badge {
  position: absolute;
  top: 1rem;
  right: 1rem;
  background: rgba(0, 0, 0, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(5px);
  -webkit-backdrop-filter: blur(5px);
  padding: 0.25rem 0.65rem;
  border-radius: 3px;
  font-size: 0.65rem;
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.archive-meta {
  padding: 1.5rem;
}

.archive-meta h4 {
  font-size: 1.25rem;
  color: var(--text-primary);
  margin-bottom: 0.35rem;
}

.archive-meta p {
  font-size: 0.85rem;
  color: var(--text-secondary);
}

/* Responsiveness */
@media (max-width: 968px) {
  .hero-container, .narrative-grid, .genie-grid {
    grid-template-columns: 1fr;
    gap: 3rem;
  }
  
  .hero-section {
    padding-top: 8rem;
  }
  
  .hero-title {
    font-size: 3.2rem;
  }
  
  .hero-images-dual {
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    order: -1;
  }
  
  .hero-image {
    height: 300px;
  }
  
  .alt-img {
    height: 240px !important;
  }
  
  .limestone-texture-card, .gallery-slide, .genie-simulator {
    height: 450px;
  }
  
  .nav {
    display: none;
  }
}
