/* ============================================
   MAKE THE MAGICAL THINGS HAPPEN
   Premium Art Gallery Aesthetic
   ============================================ */

:root {
  --color-bg: #0c0c0c;
  --color-bg-elevated: #141414;
  --color-surface: #1a1a1a;
  --color-text: #f5f2eb;
  --color-text-muted: #a8a29a;
  --color-text-subtle: #6b6560;
  --color-accent: #c4b5a0;
  --color-border: rgba(245, 242, 235, 0.08);
  --color-border-strong: rgba(245, 242, 235, 0.15);
  
  --font-display: 'Cormorant Garamond', Georgia, serif;
  --font-body: 'Inter', system-ui, sans-serif;
  
  --space-xs: 0.5rem;
  --space-sm: 1rem;
  --space-md: 1.5rem;
  --space-lg: 2.5rem;
  --space-xl: 4rem;
  --space-2xl: 6rem;
  --space-3xl: 10rem;
  
  --ease: cubic-bezier(0.25, 0.1, 0.25, 1);
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
}

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

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: var(--font-body);
  font-weight: 300;
  background-color: var(--color-bg);
  color: var(--color-text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

ul {
  list-style: none;
}

button {
  font-family: inherit;
  cursor: pointer;
  border: none;
  background: none;
}

/* ============================================
   NAVIGATION
   ============================================ */

.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  padding: var(--space-md) var(--space-lg);
  transition: background 0.4s var(--ease), padding 0.4s var(--ease);
}

.nav.scrolled {
  background: rgba(12, 12, 12, 0.92);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  padding: var(--space-sm) var(--space-lg);
  border-bottom: 1px solid var(--color-border);
}

.nav-inner {
  max-width: 1400px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-logo {
  font-family: var(--font-display);
  font-size: 0.85rem;
  font-weight: 400;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--color-text);
  transition: opacity 0.3s var(--ease);
}

.nav-logo:hover {
  opacity: 0.7;
}

.nav-links {
  display: flex;
  gap: var(--space-lg);
}

.nav-links a {
  font-size: 0.7rem;
  font-weight: 400;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--color-text-muted);
  transition: color 0.3s var(--ease);
  position: relative;
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 1px;
  background: var(--color-accent);
  transition: width 0.3s var(--ease);
}

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

.nav-links a:hover::after {
  width: 100%;
}

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 6px;
  width: 28px;
  padding: 4px 0;
}

.nav-toggle span {
  display: block;
  height: 1px;
  background: var(--color-text);
  transition: transform 0.3s var(--ease), opacity 0.3s var(--ease);
}

/* ============================================
   HERO
   ============================================ */

.hero {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  align-items: center;
  padding: var(--space-3xl) var(--space-lg) var(--space-xl);
  gap: var(--space-xl);
  position: relative;
  max-width: 1600px;
  margin: 0 auto;
}

.hero-content {
  padding-right: var(--space-lg);
}

.hero-eyebrow {
  font-size: 0.7rem;
  font-weight: 400;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--color-text-subtle);
  margin-bottom: var(--space-md);
}

.hero-title {
  font-family: var(--font-display);
  font-weight: 300;
  font-size: clamp(2.8rem, 5.5vw, 5.2rem);
  line-height: 1.05;
  letter-spacing: 0.02em;
  margin-bottom: var(--space-lg);
}

.title-line {
  display: block;
}

.hero-tagline {
  font-size: 0.75rem;
  font-weight: 400;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--color-text-muted);
  margin-bottom: var(--space-md);
}

.hero-artist {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 400;
  font-style: italic;
  color: var(--color-accent);
  letter-spacing: 0.04em;
}

.hero-image-wrap {
  position: relative;
  overflow: hidden;
  aspect-ratio: 4 / 5;
  background: var(--color-surface);
}

.hero-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 1.2s var(--ease-out);
}

.hero-image-wrap:hover .hero-image {
  transform: scale(1.03);
}

.hero-scroll {
  position: absolute;
  bottom: var(--space-lg);
  left: var(--space-lg);
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  font-size: 0.65rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--color-text-subtle);
}

.scroll-line {
  width: 40px;
  height: 1px;
  background: var(--color-text-subtle);
  position: relative;
  overflow: hidden;
}

.scroll-line::after {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background: var(--color-accent);
  animation: scrollPulse 2s var(--ease) infinite;
}

@keyframes scrollPulse {
  0% { transform: translateX(-100%); }
  50% { transform: translateX(0); }
  100% { transform: translateX(100%); }
}

/* ============================================
   SECTIONS
   ============================================ */

.section {
  padding: var(--space-3xl) var(--space-lg);
  max-width: 1400px;
  margin: 0 auto;
}

.section-header {
  margin-bottom: var(--space-2xl);
  text-align: center;
}

.section-eyebrow {
  font-size: 0.7rem;
  font-weight: 400;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--color-text-subtle);
  margin-bottom: var(--space-sm);
}

.section-title {
  font-family: var(--font-display);
  font-weight: 300;
  font-size: clamp(2rem, 4vw, 3.2rem);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

/* ============================================
   GALLERY
   ============================================ */

.gallery {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: var(--space-lg) var(--space-md);
}

.gallery-item {
  grid-column: span 4;
  cursor: pointer;
  group: true;
}

.gallery-item--large {
  grid-column: span 8;
  grid-row: span 2;
}

.gallery-item--medium {
  grid-column: span 6;
}

.gallery-image-wrap {
  position: relative;
  overflow: hidden;
  background: var(--color-surface);
  aspect-ratio: 4 / 5;
}

.gallery-item--large .gallery-image-wrap {
  aspect-ratio: 3 / 4;
}

.gallery-item--medium .gallery-image-wrap {
  aspect-ratio: 5 / 4;
}

.gallery-image-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.8s var(--ease-out), opacity 0.4s var(--ease);
}

.gallery-item:hover .gallery-image-wrap img {
  transform: scale(1.04);
}

.gallery-meta {
  padding-top: var(--space-md);
}

.gallery-title {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 400;
  letter-spacing: 0.03em;
  margin-bottom: 0.25rem;
}

.gallery-year {
  font-size: 0.7rem;
  letter-spacing: 0.1em;
  color: var(--color-text-subtle);
  margin-bottom: var(--space-xs);
}

.gallery-desc {
  font-size: 0.85rem;
  color: var(--color-text-muted);
  line-height: 1.5;
  max-width: 320px;
}

/* ============================================
   THE MAKER
   ============================================ */

.maker {
  max-width: 1200px;
}

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

.maker-lead {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 400;
  font-style: italic;
  color: var(--color-accent);
  margin-bottom: var(--space-md);
}

.maker-body p {
  font-size: 1rem;
  line-height: 1.75;
  color: var(--color-text-muted);
  margin-bottom: var(--space-md);
}

.maker-body p:last-child {
  margin-bottom: 0;
}

.maker-image {
  overflow: hidden;
  aspect-ratio: 3 / 4;
  background: var(--color-surface);
}

.maker-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 1s var(--ease-out);
}

.maker-image:hover img {
  transform: scale(1.03);
}

/* ============================================
   PHILOSOPHY
   ============================================ */

.philosophy {
  max-width: none;
  padding: var(--space-3xl) var(--space-lg);
  background: var(--color-bg-elevated);
  text-align: center;
  border-top: 1px solid var(--color-border);
  border-bottom: 1px solid var(--color-border);
}

.philosophy-inner {
  max-width: 800px;
  margin: 0 auto;
}

.philosophy-label {
  font-size: 0.7rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--color-text-subtle);
  margin-bottom: var(--space-lg);
}

.philosophy-statement {
  font-family: var(--font-display);
  font-weight: 300;
  font-size: clamp(2.4rem, 6vw, 4.5rem);
  line-height: 1.1;
  letter-spacing: 0.04em;
  margin-bottom: var(--space-lg);
}

.philosophy-text {
  font-size: 1.05rem;
  line-height: 1.7;
  color: var(--color-text-muted);
  max-width: 520px;
  margin: 0 auto;
}

/* ============================================
   CONTACT
   ============================================ */

.contact {
  max-width: 720px;
  text-align: center;
}

.contact-intro {
  font-size: 1.05rem;
  color: var(--color-text-muted);
  margin: var(--space-md) 0 var(--space-xl);
  line-height: 1.7;
}

.contact-form {
  text-align: left;
  margin-bottom: var(--space-xl);
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-md);
}

.form-group {
  margin-bottom: var(--space-md);
}

.form-group label {
  display: block;
  font-size: 0.7rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--color-text-subtle);
  margin-bottom: var(--space-xs);
}

.form-group input,
.form-group textarea {
  width: 100%;
  background: transparent;
  border: none;
  border-bottom: 1px solid var(--color-border-strong);
  padding: var(--space-sm) 0;
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 300;
  color: var(--color-text);
  outline: none;
  transition: border-color 0.3s var(--ease);
  resize: vertical;
}

.form-group input:focus,
.form-group textarea:focus {
  border-color: var(--color-accent);
}

.btn-primary {
  display: inline-block;
  margin-top: var(--space-sm);
  padding: 1rem 2.5rem;
  font-size: 0.7rem;
  font-weight: 400;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--color-bg);
  background: var(--color-text);
  transition: background 0.3s var(--ease), color 0.3s var(--ease), transform 0.3s var(--ease);
}

.btn-primary:hover {
  background: var(--color-accent);
  transform: translateY(-1px);
}

.contact-links {
  margin-top: var(--space-xl);
  padding-top: var(--space-lg);
  border-top: 1px solid var(--color-border);
}

.contact-link {
  display: block;
  font-size: 0.9rem;
  color: var(--color-text-muted);
  margin-bottom: var(--space-md);
  transition: color 0.3s var(--ease);
}

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

.social-links {
  display: flex;
  justify-content: center;
  gap: var(--space-lg);
}

.social-link {
  font-size: 0.7rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--color-text-subtle);
  transition: color 0.3s var(--ease);
}

.social-link:hover {
  color: var(--color-text);
}

/* ============================================
   FOOTER
   ============================================ */

.footer {
  padding: var(--space-xl) var(--space-lg);
  border-top: 1px solid var(--color-border);
}

.footer-inner {
  max-width: 1400px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.footer-brand {
  font-family: var(--font-display);
  font-size: 0.8rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.footer-artist {
  font-size: 0.75rem;
  color: var(--color-text-subtle);
}

/* ============================================
   LIGHTBOX
   ============================================ */

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 200;
  background: rgba(8, 8, 8, 0.96);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.4s var(--ease), visibility 0.4s var(--ease);
  padding: var(--space-lg);
}

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

.lightbox-close {
  position: absolute;
  top: var(--space-md);
  right: var(--space-lg);
  font-size: 2rem;
  color: var(--color-text-muted);
  line-height: 1;
  transition: color 0.3s var(--ease);
  z-index: 10;
}

.lightbox-close:hover {
  color: var(--color-text);
}

.lightbox-content {
  max-width: 1100px;
  width: 100%;
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: var(--space-xl);
  align-items: center;
  transform: translateY(20px);
  transition: transform 0.5s var(--ease-out);
}

.lightbox.active .lightbox-content {
  transform: translateY(0);
}

.lightbox-image {
  width: 100%;
  max-height: 80vh;
  object-fit: contain;
  background: var(--color-surface);
}

.lightbox-title {
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 400;
  margin-bottom: var(--space-xs);
}

.lightbox-year {
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  color: var(--color-text-subtle);
  margin-bottom: var(--space-md);
}

.lightbox-desc {
  font-size: 1rem;
  color: var(--color-text-muted);
  line-height: 1.7;
}

/* ============================================
   RESPONSIVE
   ============================================ */

@media (max-width: 1024px) {
  .hero {
    grid-template-columns: 1fr;
    min-height: auto;
    padding-top: calc(var(--space-3xl) + 2rem);
    gap: var(--space-xl);
  }

  .hero-content {
    padding-right: 0;
    text-align: center;
  }

  .hero-image-wrap {
    max-width: 520px;
    margin: 0 auto;
  }

  .hero-scroll {
    display: none;
  }

  .gallery-item,
  .gallery-item--large,
  .gallery-item--medium {
    grid-column: span 6;
  }

  .maker-grid {
    grid-template-columns: 1fr;
    gap: var(--space-xl);
  }

  .maker-image {
    order: -1;
    max-width: 480px;
    margin: 0 auto;
  }

  .lightbox-content {
    grid-template-columns: 1fr;
    gap: var(--space-lg);
    text-align: center;
  }
}

@media (max-width: 768px) {
  .nav-links {
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    width: 280px;
    background: var(--color-bg-elevated);
    flex-direction: column;
    padding: var(--space-3xl) var(--space-lg);
    gap: var(--space-md);
    transform: translateX(100%);
    transition: transform 0.4s var(--ease);
    border-left: 1px solid var(--color-border);
  }

  .nav-links.open {
    transform: translateX(0);
  }

  .nav-toggle {
    display: flex;
    z-index: 110;
  }

  .nav-toggle.open span:first-child {
    transform: translateY(3.5px) rotate(45deg);
  }

  .nav-toggle.open span:last-child {
    transform: translateY(-3.5px) rotate(-45deg);
  }

  .section {
    padding: var(--space-2xl) var(--space-md);
  }

  .gallery {
    grid-template-columns: 1fr;
    gap: var(--space-xl);
  }

  .gallery-item,
  .gallery-item--large,
  .gallery-item--medium {
    grid-column: span 1;
  }

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

  .footer-inner {
    flex-direction: column;
    gap: var(--space-sm);
    text-align: center;
  }

  .philosophy-statement {
    font-size: clamp(2rem, 8vw, 3rem);
  }
}

@media (max-width: 480px) {
  .hero-title {
    font-size: 2.4rem;
  }

  .nav {
    padding: var(--space-sm) var(--space-md);
  }
}
