/* ========================================
   DEATH NYC — 限量版画画廊
   Premium gallery with product modal & social contact
   ======================================== */

/* ---------- Reset & Base ---------- */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* ---------- Design Tokens ---------- */
:root {
  --bg: #ffffff;
  --bg-elevated: #ffffff;
  --bg-sunken: #f7f7f5;
  --text-primary: #1a1a1a;
  --text-secondary: #666666;
  --text-tertiary: #999999;
  --border: #e0e0e0;
  --border-subtle: #f0f0f0;
  --accent: #b8956a;
  --accent-hover: #a6825a;
  --accent-subtle: rgba(184, 149, 106, 0.06);
  --nav-bg: rgba(255, 255, 255, 0.92);
  --nav-border: rgba(0, 0, 0, 0.08);
  --shadow-sm: 0 1px 4px rgba(0, 0, 0, 0.03);
  --shadow-md: 0 4px 24px rgba(0, 0, 0, 0.04);
  --shadow-lg: 0 12px 48px rgba(0, 0, 0, 0.08);
  --transition: 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  --transition-slow: 0.8s cubic-bezier(0.16, 1, 0.3, 1);
  --content-max: 1280px;
  --content-wide: 1600px;
}

[data-theme="dark"] {
  --bg: #0a0a0a;
  --bg-elevated: #161616;
  --bg-sunken: #0f0f0f;
  --text-primary: #f0f0f0;
  --text-secondary: #999999;
  --text-tertiary: #666666;
  --border: #2a2a2a;
  --border-subtle: #1e1e1e;
  --accent: #c9a961;
  --accent-hover: #d4b876;
  --accent-subtle: rgba(201, 169, 97, 0.08);
  --nav-bg: rgba(10, 10, 10, 0.92);
  --nav-border: rgba(255, 255, 255, 0.06);
  --shadow-sm: 0 1px 4px rgba(0, 0, 0, 0.2);
  --shadow-md: 0 4px 24px rgba(0, 0, 0, 0.3);
  --shadow-lg: 0 12px 48px rgba(0, 0, 0, 0.4);
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Text", "Helvetica Neue", "PingFang SC", "Noto Sans SC", sans-serif;
  background: var(--bg);
  color: var(--text-primary);
  line-height: 1.5;
  font-size: 15px;
  letter-spacing: -0.003em;
  overflow-x: hidden;
  transition: background var(--transition), color var(--transition);
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
::selection { background: var(--accent); color: #fff; }

::-webkit-scrollbar { width: 4px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: var(--border); border-radius: 2px; }

/* ---------- Scroll Progress ---------- */
.scroll-progress {
  position: fixed;
  top: 0; left: 0;
  height: 1px; width: 0%;
  background: var(--accent);
  z-index: 10000;
  transition: width 0.1s linear;
}

/* ============================================
   MODULE: NAVIGATION
   ============================================ */
.nav {
  position: fixed;
  top: 0; left: 0;
  width: 100%;
  z-index: 1000;
  background: transparent;
  transition: background var(--transition), backdrop-filter var(--transition), border-color var(--transition);
  border-bottom: 1px solid transparent;
  color: #fff;
}

.nav.scrolled {
  background: var(--nav-bg);
  backdrop-filter: saturate(180%) blur(20px);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  border-bottom: 1px solid var(--nav-border);
  color: var(--text-primary);
}

.nav-inner {
  max-width: var(--content-wide);
  margin: 0 auto;
  padding: 0 2rem;
  height: 44px;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
}

.nav-left { justify-self: start; }
.nav-right { justify-self: end; display: flex; align-items: center; gap: 1.25rem; }

.nav-logo {
  justify-self: center;
  transition: opacity var(--transition);
}
.nav-logo:hover { opacity: 0.6; }

.logo-text {
  font-family: "Cormorant Garamond", serif;
  font-size: 1.1rem;
  font-weight: 500;
  letter-spacing: 0.35em;
  color: inherit;
  text-transform: uppercase;
}

.nav-links {
  display: flex;
  gap: 1.75rem;
  list-style: none;
}

.nav-links a {
  font-size: 0.72rem;
  font-weight: 400;
  color: inherit;
  opacity: 0.7;
  transition: opacity var(--transition);
  position: relative;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

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

.nav-links a:hover,
.nav-links a.active { opacity: 1; }
.nav-links a:hover::after,
.nav-links a.active::after { width: 100%; }

.theme-toggle,
.lang-toggle {
  background: none; border: none; cursor: pointer;
  width: 28px; height: 28px;
  display: flex; align-items: center; justify-content: center;
  color: inherit;
  border-radius: 50%;
  transition: background var(--transition), transform var(--transition);
  position: relative;
}

.theme-toggle:hover,
.lang-toggle:hover { background: var(--accent-subtle); transform: scale(1.05); }

/* Language Toggle */
.lang-toggle {
  font-size: 0.62rem;
  font-weight: 600;
  letter-spacing: 0.02em;
}

.lang-toggle .lang-zh,
.lang-toggle .lang-en {
  position: absolute;
  transition: opacity var(--transition), transform var(--transition);
}

.lang-toggle .lang-zh { opacity: 1; transform: translateY(0); }
.lang-toggle .lang-en { opacity: 0; transform: translateY(8px); }

[data-lang="en"] .lang-toggle .lang-zh { opacity: 0; transform: translateY(-8px); }
[data-lang="en"] .lang-toggle .lang-en { opacity: 1; transform: translateY(0); }

.theme-toggle svg {
  width: 14px; height: 14px;
  position: absolute;
  transition: opacity var(--transition), transform var(--transition);
}

.icon-sun { opacity: 1; transform: rotate(0deg); }
.icon-moon { opacity: 0; transform: rotate(-90deg); }
[data-theme="dark"] .icon-sun { opacity: 0; transform: rotate(90deg); }
[data-theme="dark"] .icon-moon { opacity: 1; transform: rotate(0deg); }

.menu-toggle {
  display: none;
  background: none; border: none; cursor: pointer;
  width: 24px; height: 24px;
  flex-direction: column; justify-content: center; gap: 5px;
  padding: 0;
}

.menu-toggle span {
  display: block; width: 100%; height: 1px;
  background: currentColor;
  transition: transform var(--transition), opacity var(--transition);
}

.nav.scrolled .menu-toggle span {
  background: var(--text-primary);
}

.menu-toggle.active span:nth-child(1) { transform: translateY(3px) rotate(45deg); }
.menu-toggle.active span:nth-child(2) { transform: translateY(-3px) rotate(-45deg); }

.mobile-menu {
  display: none;
  flex-direction: column;
  background: var(--nav-bg);
  backdrop-filter: saturate(180%) blur(20px);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  padding: 1rem 2rem 1.5rem;
  border-bottom: 1px solid var(--nav-border);
  gap: 0.25rem;
  max-height: 0; overflow: hidden;
  transition: max-height var(--transition);
}

.mobile-menu.open { max-height: 300px; }
.mobile-menu a {
  padding: 0.75rem 0;
  font-size: 1rem;
  color: var(--text-primary);
  border-bottom: 1px solid var(--border-subtle);
  letter-spacing: 0.05em;
}

/* ============================================
   MODULE 1: HERO — Full Screen Video
   ============================================ */
.hero {
  position: relative;
  height: 100vh;
  min-height: 600px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  overflow: hidden;
}

.hero-media {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 2;
  opacity: 0;
  transition: opacity 1.2s ease;
}

.hero-video.loaded {
  opacity: 1;
}

.hero-fallback {
  position: absolute;
  inset: 0;
  z-index: 1;
  background: #000;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  background-repeat: no-repeat;
  background-size: cover;
  background-position: center;
  filter: blur(14px) brightness(0.7);
  opacity: 0.75;
  transform: scale(1.12);
  pointer-events: none;
  z-index: 2;
}

.hero-bg-left {
  top: -10%;
  left: -10%;
  width: 70%;
  height: 75%;
  background-image: url('../assets/images/hero-left.jpg');
}

.hero-bg-right {
  bottom: -10%;
  right: -10%;
  width: 70%;
  height: 75%;
  background-image: url('../assets/images/hero-right.jpg');
}

/* 渐变遮罩：让图片边缘融入黑色，左下右上留空 */
.hero-fade {
  position: absolute;
  inset: 0;
  z-index: 3;
  pointer-events: none;
  background:
    radial-gradient(ellipse 55% 50% at 28% 28%, transparent 0%, transparent 30%, rgba(0,0,0,0.4) 55%, rgba(0,0,0,0.85) 80%),
    radial-gradient(ellipse 55% 50% at 72% 72%, transparent 0%, transparent 30%, rgba(0,0,0,0.4) 55%, rgba(0,0,0,0.85) 80%);
}

.hero-grain {
  position: absolute;
  inset: 0;
  z-index: 3;
  opacity: 0.04;
  pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='3' /%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

.hero-overlay {
  position: absolute;
  inset: 0;
  z-index: 3;
  background:
    radial-gradient(ellipse 60% 50% at 50% 50%, rgba(0,0,0,0.35) 0%, rgba(0,0,0,0.65) 60%, rgba(0,0,0,0.88) 100%);
  pointer-events: none;
}

.hero-content {
  position: relative;
  z-index: 4;
  max-width: 800px;
  padding: 0 2rem;
}

.hero-eyebrow {
  font-size: 0.68rem;
  font-weight: 500;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.7);
  margin-bottom: 1.5rem;
}

.hero-title {
  font-family: "Cormorant Garamond", "Times New Roman", serif;
  font-size: clamp(3.5rem, 10vw, 7rem);
  font-weight: 300;
  line-height: 0.95;
  letter-spacing: -0.03em;
  margin-bottom: 1.5rem;
  color: #fff;
  text-shadow:
    0 0 18px rgba(201, 169, 97, 0.25),
    0 0 38px rgba(201, 169, 97, 0.12),
    0 0 60px rgba(255, 255, 255, 0.08);
}

.hero-title span { display: block; }

.hero-title em {
  font-style: italic;
  color: var(--accent);
  text-shadow:
    0 0 14px rgba(201, 169, 97, 0.45),
    0 0 28px rgba(201, 169, 97, 0.25),
    0 0 50px rgba(201, 169, 97, 0.12);
}

/* Sparkle 亮片 */
.hero-content { position: relative; }

.sparkle {
  position: absolute;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255,255,255,0.95) 0%, rgba(201,169,97,0.5) 35%, transparent 70%);
  pointer-events: none;
  z-index: 5;
  opacity: 0;
  animation: sparkleTwinkle var(--dur, 3s) ease-in-out infinite;
  animation-delay: var(--delay, 0s);
}

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

.hero-subtitle {
  font-size: clamp(1rem, 2vw, 1.15rem);
  color: rgba(255, 255, 255, 0.65);
  font-weight: 300;
  letter-spacing: 0.02em;
  margin-bottom: 2.5rem;
}

.hero-cta {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: #fff;
  border-bottom: 1px solid rgba(255, 255, 255, 0.4);
  padding-bottom: 6px;
  transition: gap var(--transition), border-color var(--transition);
}

.hero-cta svg { width: 14px; height: 14px; transition: transform var(--transition); }
.hero-cta:hover { gap: 0.8rem; border-color: #fff; }
.hero-cta:hover svg { transform: translateX(3px); }

/* ============================================
   MODULE 2: ARTWORK MINI GRID
   ============================================ */
.artwork-mini {
  padding: 6rem 2.5rem;
  background: var(--bg);
}

.artwork-mini-inner {
  max-width: var(--content-max);
  margin: 0 auto;
}

.mini-header {
  text-align: center;
  margin-bottom: 3.5rem;
}

.mini-eyebrow {
  font-size: 0.68rem;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 1rem;
}

.mini-title {
  font-family: "Cormorant Garamond", serif;
  font-size: clamp(1.8rem, 4vw, 2.6rem);
  font-weight: 400;
  line-height: 1.1;
  color: var(--text-primary);
}

.mini-title em {
  font-style: italic;
  color: var(--accent);
}

.mini-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
}

.mini-card {
  cursor: pointer;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.mini-card .artwork {
  width: 100%;
  aspect-ratio: 1 / 1;
  border-radius: 0;
  box-shadow: none;
  transition: transform var(--transition-slow), opacity var(--transition-slow);
  overflow: hidden;
}

.mini-card .artwork-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform var(--transition-slow);
}

.mini-card:hover .artwork {
  transform: scale(0.97);
  opacity: 0.92;
}

.mini-card:hover .artwork-photo img {
  transform: scale(1.05);
}

.mini-label {
  margin-top: 0.875rem;
  font-size: 0.65rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-secondary);
  text-align: center;
  transition: color var(--transition);
}

.mini-card:hover .mini-label { color: var(--accent); }

/* ============================================
   MODULE 3: STORY SECTION (Best Seller)
   ============================================ */
.story-section {
  padding: 7rem 2.5rem;
  background: var(--bg-sunken);
}

.story-inner {
  max-width: var(--content-wide);
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3rem;
}

.story-text {
  text-align: center;
  max-width: 680px;
}

.story-eyebrow {
  font-size: 0.68rem;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 1.25rem;
}

.story-title {
  font-family: "Cormorant Garamond", serif;
  font-size: clamp(2rem, 5vw, 3.2rem);
  font-weight: 400;
  line-height: 1.1;
  color: var(--text-primary);
  margin-bottom: 1.25rem;
}

.story-title em {
  font-style: italic;
  color: var(--accent);
}

.story-desc {
  font-size: 1rem;
  color: var(--text-secondary);
  line-height: 1.75;
  margin-bottom: 1.75rem;
}

.story-cta {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-primary);
  border-bottom: 1px solid var(--border);
  padding-bottom: 6px;
  transition: gap var(--transition), border-color var(--transition), color var(--transition);
}

.story-cta svg { width: 14px; height: 14px; transition: transform var(--transition); }
.story-cta:hover { gap: 0.8rem; border-color: var(--accent); color: var(--accent); }
.story-cta:hover svg { transform: translateX(3px); }

.story-visual {
  width: 100%;
  max-width: 1200px;
  cursor: pointer;
}

.story-visual .artwork {
  width: 100%;
  aspect-ratio: 16 / 9;
  border-radius: 0;
  overflow: hidden;
}

.story-visual .artwork-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform var(--transition-slow);
}

.story-visual:hover .artwork-photo img {
  transform: scale(1.03);
}

.artwork-quickview {
  position: absolute;
  bottom: 1.5rem; right: 1.5rem;
  width: 44px; height: 44px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.9);
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #1a1a1a;
  opacity: 0;
  transform: translateY(10px);
  transition: opacity var(--transition), transform var(--transition), background var(--transition);
  z-index: 10;
}

.artwork-quickview svg { width: 18px; height: 18px; }
.story-visual:hover .artwork-quickview,
.work-image:hover .artwork-quickview {
  opacity: 1;
  transform: translateY(0);
}
.artwork-quickview:hover { background: #fff; }

/* ============================================
   MODULE 4: MORE WORKS
   ============================================ */
.more-works {
  padding: 7rem 2.5rem;
  background: var(--bg);
}

.more-works-inner {
  max-width: var(--content-max);
  margin: 0 auto;
}

.section-header {
  text-align: center;
  max-width: 620px;
  margin: 0 auto 4rem;
}

.section-eyebrow {
  font-size: 0.68rem;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 1rem;
}

.section-title {
  font-family: "Cormorant Garamond", serif;
  font-size: clamp(1.8rem, 4vw, 2.6rem);
  font-weight: 400;
  line-height: 1.1;
  color: var(--text-primary);
  margin-bottom: 1rem;
}

.section-title em {
  font-style: italic;
  color: var(--accent);
}

.section-desc {
  font-size: 0.95rem;
  color: var(--text-secondary);
  line-height: 1.7;
}

.works-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2.5rem 2rem;
}

.work-card {
  cursor: pointer;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.work-image {
  position: relative;
  overflow: hidden;
}

.work-image .artwork {
  width: 100%;
  aspect-ratio: 4 / 5;
  border-radius: 0;
  transition: transform var(--transition-slow), opacity var(--transition-slow);
}

.work-image .artwork-photo {
  overflow: hidden;
}

.work-image .artwork-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform var(--transition-slow);
}

.work-card:hover .work-image .artwork-photo img {
  transform: scale(1.05);
}

.work-card:hover .work-image .artwork:not(.artwork-photo) {
  transform: scale(0.98);
  opacity: 0.95;
}

.work-info {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.work-artist {
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-tertiary);
}

.work-title {
  font-family: "Cormorant Garamond", serif;
  font-size: 1.25rem;
  font-weight: 500;
  color: var(--text-primary);
}

.work-medium {
  font-size: 0.78rem;
  color: var(--text-secondary);
}

.work-price {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-primary);
  margin-top: 0.25rem;
}

/* ============================================
   MODULE 5: STUDIO
   ============================================ */
.studio {
  padding: 7rem 2.5rem;
  background: var(--bg-sunken);
}

.studio-inner {
  max-width: var(--content-max);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 5rem;
  align-items: center;
}

.studio-visual img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  border-radius: 0;
  display: block;
}

.studio-eyebrow {
  font-size: 0.68rem;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 1rem;
}

.studio-title {
  font-family: "Cormorant Garamond", serif;
  font-size: clamp(1.8rem, 4vw, 2.6rem);
  font-weight: 400;
  line-height: 1.1;
  color: var(--text-primary);
  margin-bottom: 1.5rem;
}

.studio-title em {
  font-style: italic;
  color: var(--accent);
}

.studio-desc {
  font-size: 0.95rem;
  color: var(--text-secondary);
  line-height: 1.75;
  margin-bottom: 1.25rem;
}

/* ============================================
   MODULE 6: CONTACT
   ============================================ */
.contact {
  padding: 7rem 2.5rem;
  background: var(--bg);
}

.contact-inner {
  max-width: var(--content-max);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 5rem;
  align-items: start;
}

.contact-eyebrow {
  font-size: 0.68rem;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 1rem;
}

.contact-title {
  font-family: "Cormorant Garamond", serif;
  font-size: clamp(1.8rem, 4vw, 2.6rem);
  font-weight: 400;
  line-height: 1.1;
  color: var(--text-primary);
  margin-bottom: 1.5rem;
}

.contact-title em {
  font-style: italic;
  color: var(--accent);
}

.contact-desc {
  font-size: 0.95rem;
  color: var(--text-secondary);
  line-height: 1.75;
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.25rem;
}

.form-field {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.form-field label {
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-secondary);
}

.form-field input,
.form-field textarea {
  width: 100%;
  background: transparent;
  border: none;
  border-bottom: 1px solid var(--border);
  padding: 0.75rem 0;
  font-size: 0.95rem;
  color: var(--text-primary);
  font-family: inherit;
  outline: none;
  transition: border-color var(--transition);
  resize: vertical;
}

.form-field input::placeholder,
.form-field textarea::placeholder { color: var(--text-tertiary); }

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

.contact-submit {
  align-self: flex-start;
  margin-top: 0.5rem;
  padding: 1rem 2.5rem;
  background: var(--text-primary);
  color: var(--bg);
  border: none;
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  cursor: pointer;
  transition: background var(--transition), transform var(--transition);
}

.contact-submit:hover {
  background: var(--accent);
  transform: translateY(-2px);
}

/* ============================================
   FOOTER
   ============================================ */
.footer {
  padding: 4rem 2.5rem;
  background: var(--bg-sunken);
  border-top: 1px solid var(--border-subtle);
}

.footer-inner {
  max-width: var(--content-max);
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 2rem;
}

.footer-logo {
  font-family: "Cormorant Garamond", serif;
  font-size: 1.1rem;
  font-weight: 500;
  letter-spacing: 0.35em;
  text-transform: uppercase;
  color: var(--text-primary);
}

.footer-brand p {
  font-size: 0.75rem;
  color: var(--text-tertiary);
  margin-top: 0.25rem;
  letter-spacing: 0.05em;
}

.footer-links {
  display: flex;
  gap: 2rem;
}

.footer-links a {
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-secondary);
  transition: color var(--transition);
}

.footer-links a:hover { color: var(--accent); }

.footer-copy {
  font-size: 0.72rem;
  color: var(--text-tertiary);
}

/* ============================================
   PRODUCT MODAL
   ============================================ */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  z-index: 2000;
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--transition);
}

.modal-overlay.open {
  opacity: 1;
  pointer-events: auto;
}

.modal-panel {
  position: fixed;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%) scale(0.96);
  width: min(900px, 92vw);
  max-height: 90vh;
  background: var(--bg-elevated);
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  z-index: 2001;
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--transition), transform var(--transition);
  overflow: hidden;
}

.modal-overlay.open + .modal-panel,
.modal-panel.open {
  opacity: 1;
  pointer-events: auto;
  transform: translate(-50%, -50%) scale(1);
}

.modal-close {
  position: absolute;
  top: 1rem; right: 1rem;
  width: 36px; height: 36px;
  background: rgba(255, 255, 255, 0.85);
  border: none;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #1a1a1a;
  z-index: 10;
  transition: background var(--transition), transform var(--transition);
}

.modal-close:hover { background: #fff; transform: rotate(90deg); }
.modal-close svg { width: 16px; height: 16px; }

.modal-visual .artwork {
  width: 100%;
  height: 100%;
  min-height: 420px;
  aspect-ratio: auto;
  border-radius: 0;
}

.modal-visual .artwork-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.modal-visual {
  display: block;
  padding: 0;
  background: #0a0a0a;
}

.modal-info {
  padding: 3rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
  overflow-y: auto;
}

.modal-artist {
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-tertiary);
  margin-bottom: 0.75rem;
}

.modal-title {
  font-family: "Cormorant Garamond", serif;
  font-size: 2rem;
  font-weight: 400;
  color: var(--text-primary);
  margin-bottom: 0.75rem;
  line-height: 1.1;
}

.modal-medium {
  font-size: 0.82rem;
  color: var(--text-secondary);
  margin-bottom: 1.5rem;
}

.modal-desc {
  font-size: 0.92rem;
  color: var(--text-secondary);
  line-height: 1.75;
  margin-bottom: 1.5rem;
}

/* ---------- Modal Spec Table ---------- */
.modal-specs {
  display: flex;
  flex-direction: column;
  margin-bottom: 1.5rem;
  border-top: 1px solid var(--border-subtle);
}

.spec-row {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  padding: 0.7rem 0;
  border-bottom: 1px solid var(--border-subtle);
  gap: 1.5rem;
}

.spec-label {
  font-size: 0.68rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-tertiary);
  flex-shrink: 0;
  white-space: nowrap;
}

.spec-value {
  font-size: 0.8rem;
  color: var(--text-secondary);
  text-align: right;
  line-height: 1.5;
}

/* ---------- Modal Size Selector ---------- */
.modal-size-selector {
  margin-bottom: 1.5rem;
}

.size-selector-label {
  font-size: 0.68rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-tertiary);
  margin-bottom: 0.75rem;
}

.size-options {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.size-option {
  display: flex;
  align-items: center;
  padding: 0.85rem 1rem;
  border: 1px solid var(--border);
  cursor: pointer;
  transition: border-color var(--transition), background var(--transition);
  position: relative;
}

.size-option:hover {
  border-color: var(--text-secondary);
}

.size-option.selected {
  border-color: var(--accent);
  background: var(--accent-subtle);
}

.size-option input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.size-option-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  gap: 1rem;
}

.size-option-name {
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--text-primary);
  flex-shrink: 0;
}

.size-option-dim {
  font-size: 0.72rem;
  color: var(--text-secondary);
  flex: 1;
  text-align: center;
}

.size-option-price {
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--text-primary);
  flex-shrink: 0;
}

.size-option.selected .size-option-price {
  color: var(--accent);
}

.modal-price {
  font-size: 1.15rem;
  font-weight: 500;
  color: var(--text-primary);
  margin-bottom: 1.5rem;
}

.modal-add {
  align-self: flex-start;
  padding: 1rem 2.5rem;
  background: var(--text-primary);
  color: var(--bg);
  border: none;
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  cursor: pointer;
  transition: background var(--transition), transform var(--transition);
}

.modal-add:hover {
  background: var(--accent);
  transform: translateY(-2px);
}

/* ============================================
   SOCIAL CONTACT LINKS
   ============================================ */
.contact-social {
  margin-top: 2.5rem;
  padding-top: 2rem;
  border-top: 1px solid var(--border-subtle);
}

.contact-social-label {
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-secondary);
  margin-bottom: 1.25rem;
}

.social-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.social-link {
  display: inline-flex;
  align-items: center;
  gap: 0.625rem;
  padding: 0.75rem 1.25rem;
  border: 1px solid var(--border);
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.05em;
  color: var(--text-primary);
  transition: border-color var(--transition), background var(--transition), color var(--transition), transform var(--transition);
}

.social-link svg {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
  transition: transform var(--transition);
}

.social-link:hover {
  border-color: var(--accent);
  background: var(--accent-subtle);
  color: var(--accent);
  transform: translateY(-2px);
}

.social-link:hover svg {
  transform: scale(1.1);
}

/* ============================================
   ARTWORK SYSTEM (CSS-generated)
   ============================================ */
.artwork {
  position: relative;
  width: 100%;
  aspect-ratio: 4 / 5;
  border-radius: 0;
  overflow: hidden;
  background: var(--bg-sunken);
  transition: transform var(--transition-slow), box-shadow var(--transition-slow);
}

.artwork-glow {
  position: absolute;
  inset: 0;
  z-index: 0;
  opacity: 0.8;
  transition: opacity var(--transition-slow);
}

.artwork:hover .artwork-glow { opacity: 1; }

.artwork-shapes { position: absolute; inset: 0; z-index: 1; }
.shape { position: absolute; transition: transform var(--transition-slow); }
.artwork:hover .shape { transform: scale(1.05); }

/* --- Crimson Dawn --- */
.artwork-crimson { background: linear-gradient(135deg, #2d0a0a 0%, #5c1a1a 40%, #8b3a3a 100%); }
.artwork-crimson .artwork-glow { background: radial-gradient(circle at 50% 30%, rgba(255, 100, 80, 0.25), transparent 60%); }
.artwork-crimson .shape-circle { border-radius: 50%; }
.artwork-crimson .shape-1 { width: 50%; height: 50%; top: 15%; left: 25%; background: radial-gradient(circle, rgba(255, 120, 100, 0.5), transparent 65%); filter: blur(15px); }
.artwork-crimson .shape-2 { width: 35%; height: 35%; top: 45%; left: 10%; background: radial-gradient(circle, rgba(255, 80, 60, 0.4), transparent 65%); filter: blur(10px); }

/* --- Blue Memory --- */
.artwork-blue { background: linear-gradient(160deg, #0a1929 0%, #0d3b66 50%, #064e8e 100%); }
.artwork-blue .artwork-glow { background: radial-gradient(circle at 70% 40%, rgba(100, 180, 255, 0.2), transparent 60%); }
.artwork-blue .shape-wave { height: 2px; border-radius: 2px; left: 0; right: 0; }
.artwork-blue .shape-1 { top: 30%; height: 2px; background: linear-gradient(90deg, transparent, rgba(150, 200, 255, 0.6), transparent); }
.artwork-blue .shape-2 { top: 45%; height: 3px; background: linear-gradient(90deg, transparent, rgba(100, 170, 255, 0.5), transparent); }
.artwork-blue .shape-3 { top: 60%; height: 1.5px; background: linear-gradient(90deg, transparent, rgba(200, 220, 255, 0.4), transparent); }

/* --- Golden Silence --- */
.artwork-gold { background: linear-gradient(135deg, #1a1408 0%, #3d3214 40%, #5c4a20 100%); }
.artwork-gold .artwork-glow { background: radial-gradient(circle at 40% 50%, rgba(212, 175, 55, 0.25), transparent 55%); }
.artwork-gold .shape-rect { border-radius: 4px; }
.artwork-gold .shape-1 { width: 55%; height: 70%; top: 15%; left: 22%; background: linear-gradient(135deg, rgba(212, 175, 55, 0.3), rgba(184, 149, 106, 0.15)); border: 1px solid rgba(212, 175, 55, 0.3); }
.artwork-gold .shape-2 { width: 35%; height: 45%; top: 28%; left: 33%; background: linear-gradient(135deg, rgba(255, 215, 100, 0.2), transparent); border: 1px solid rgba(212, 175, 55, 0.2); }

/* --- Verdant Echo --- */
.artwork-verdant { background: linear-gradient(135deg, #0a1f0a 0%, #1a3a1a 40%, #2d5a2d 100%); }
.artwork-verdant .artwork-glow { background: radial-gradient(circle at 60% 50%, rgba(100, 200, 120, 0.2), transparent 55%); }
.artwork-verdant .shape-organic { border-radius: 60% 40% 50% 50% / 50% 60% 40% 50%; }
.artwork-verdant .shape-1 { width: 55%; height: 55%; top: 20%; left: 20%; background: radial-gradient(circle, rgba(120, 220, 140, 0.25), transparent 70%); filter: blur(15px); }
.artwork-verdant .shape-2 { width: 40%; height: 40%; top: 40%; left: 45%; background: radial-gradient(circle, rgba(80, 180, 100, 0.2), transparent 70%); filter: blur(10px); }

/* --- Violet Hour --- */
.artwork-violet { background: linear-gradient(135deg, #1a0a2e 0%, #2d1b4e 50%, #4a2c6e 100%); }
.artwork-violet .artwork-glow { background: radial-gradient(circle at 50% 40%, rgba(160, 100, 220, 0.2), transparent 60%); }
.artwork-violet .shape-triangle { width: 0; height: 0; border-left: solid transparent; border-right: solid transparent; }
.artwork-violet .shape-1 { bottom: 10%; left: 25%; border-left-width: 80px; border-right-width: 80px; border-bottom: 120px solid rgba(160, 100, 220, 0.15); filter: blur(2px); }
.artwork-violet .shape-2 { bottom: 15%; left: 40%; border-left-width: 60px; border-right-width: 60px; border-bottom: 90px solid rgba(140, 80, 200, 0.2); filter: blur(1px); }
.artwork-violet .shape-3 { bottom: 20%; left: 50%; border-left-width: 40px; border-right-width: 40px; border-bottom: 60px solid rgba(180, 120, 240, 0.15); }

/* --- Monochrome Light --- */
.artwork-mono { background: linear-gradient(180deg, #1a1a1a 0%, #2a2a2a 50%, #1a1a1a 100%); }
[data-theme="dark"] .artwork-mono { background: linear-gradient(180deg, #1a1a1a 0%, #333 50%, #1a1a1a 100%); }
.artwork-mono .artwork-glow { background: radial-gradient(circle at 50% 50%, rgba(255, 255, 255, 0.06), transparent 60%); }
.artwork-mono .shape-line { height: 1px; left: 15%; right: 15%; background: rgba(255, 255, 255, 0.15); }
.artwork-mono .shape-1 { top: 25%; }
.artwork-mono .shape-2 { top: 38%; background: rgba(255, 255, 255, 0.25); }
.artwork-mono .shape-3 { top: 51%; background: rgba(255, 255, 255, 0.1); }
.artwork-mono .shape-4 { top: 64%; background: rgba(255, 255, 255, 0.2); }

/* --- Desert Mirage --- */
.artwork-sand { background: linear-gradient(135deg, #e8ddd0 0%, #d4c4b0 50%, #c9b8a2 100%); }
.artwork-sand .artwork-glow { background: radial-gradient(circle at 40% 40%, rgba(255, 255, 255, 0.35), transparent 55%); }
.artwork-sand .shape-arch { border-radius: 100px 100px 0 0; }
.artwork-sand .shape-1 { width: 45%; height: 55%; bottom: 0; left: 15%; background: rgba(139, 115, 85, 0.35); }
.artwork-sand .shape-2 { width: 30%; height: 40%; bottom: 0; left: 45%; background: rgba(160, 135, 105, 0.3); }
.artwork-sand .shape-3 { width: 18%; height: 28%; bottom: 0; left: 68%; background: rgba(120, 100, 75, 0.35); }

/* --- Noir Study --- */
.artwork-noir { background: linear-gradient(135deg, #0f0f0f 0%, #1c1c1c 50%, #0a0a0a 100%); }
.artwork-noir .artwork-glow { background: radial-gradient(circle at 60% 40%, rgba(255, 255, 255, 0.08), transparent 55%); }
.artwork-noir .shape-arc { border-radius: 50%; border: 2px solid rgba(255, 255, 255, 0.12); }
.artwork-noir .shape-1 { width: 60%; height: 60%; top: 20%; left: 20%; }
.artwork-noir .shape-2 { width: 40%; height: 40%; top: 30%; left: 30%; border-color: rgba(255, 255, 255, 0.2); }
.artwork-noir .shape-3 { width: 14%; height: 14%; top: 43%; left: 43%; border-radius: 50%; background: rgba(255, 255, 255, 0.7); border: none; }

/* --- A place in the sun --- */
.artwork-sun { background: linear-gradient(135deg, #f4d03f 0%, #f7dc6f 40%, #fcf3cf 100%); }
.artwork-sun .artwork-glow { background: radial-gradient(circle at 70% 30%, rgba(255, 255, 255, 0.5), transparent 55%); }
.artwork-sun .shape-sun { border-radius: 50%; }
.artwork-sun .shape-1 { width: 35%; height: 35%; top: 18%; right: 18%; background: radial-gradient(circle, rgba(255, 255, 255, 0.9), rgba(250, 215, 100, 0.6)); filter: blur(2px); }
.artwork-sun .shape-ray { height: 2px; background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.7), transparent); left: 0; right: 0; }
.artwork-sun .shape-2 { top: 35%; transform: rotate(12deg); }
.artwork-sun .shape-3 { top: 50%; transform: rotate(-8deg); }
.artwork-sun .shape-4 { top: 65%; transform: rotate(5deg); }
.artwork-sun .shape-pool { width: 80%; height: 25%; bottom: 8%; left: 10%; background: linear-gradient(180deg, rgba(70, 130, 180, 0.35), rgba(70, 130, 180, 0.15)); border-radius: 50% 50% 0 0; }

/* --- Studio --- */
.artwork-studio { background: linear-gradient(135deg, #e8e4df 0%, #d4cec7 50%, #c5bdb4 100%); }
.artwork-studio .artwork-glow { background: radial-gradient(circle at 30% 30%, rgba(255, 255, 255, 0.45), transparent 55%); }
.artwork-studio .shape-window { width: 45%; height: 55%; top: 10%; left: 10%; background: rgba(255, 255, 255, 0.35); border: 4px solid rgba(255, 255, 255, 0.5); }
.artwork-studio .shape-window::before {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(255,255,255,0.2), transparent);
}
.artwork-studio .shape-easel { width: 8%; height: 55%; bottom: 12%; left: 58%; background: rgba(120, 100, 80, 0.5); transform: rotate(-8deg); }
.artwork-studio .shape-canvas { width: 28%; height: 38%; bottom: 40%; left: 48%; background: rgba(255, 255, 255, 0.55); transform: rotate(-4deg); border: 2px solid rgba(120, 100, 80, 0.3); }
.artwork-studio .shape-light { width: 20%; height: 20%; top: 5%; right: 15%; background: radial-gradient(circle, rgba(255, 230, 150, 0.6), transparent 70%); border-radius: 50%; filter: blur(8px); }

/* ============================================
   REVEAL ANIMATION
   ============================================ */
.reveal {
  opacity: 0;
  transform: translateY(25px);
  transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1),
              transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
  transition-delay: var(--reveal-delay, 0ms);
}

.reveal.visible { opacity: 1; transform: translateY(0); }

/* ============================================
   GDPR COOKIE CONSENT BANNER
   ============================================ */
.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: var(--bg-elevated);
  border-top: 1px solid var(--border);
  padding: 1.25rem 2rem;
  z-index: 3000;
  transform: translateY(100%);
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 0 -4px 24px rgba(0, 0, 0, 0.08);
}
.cookie-banner.show { transform: translateY(0); }
.cookie-content {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}
.cookie-text {
  margin: 0;
  font-size: 0.85rem;
  color: var(--text-secondary);
  line-height: 1.5;
}
.cookie-link {
  color: var(--accent);
  text-decoration: underline;
  text-underline-offset: 2px;
}
.cookie-buttons {
  display: flex;
  gap: 0.75rem;
  flex-shrink: 0;
}
.cookie-btn {
  padding: 0.55rem 1.5rem;
  font-size: 0.8rem;
  letter-spacing: 0.04em;
  border: 1px solid var(--border);
  background: transparent;
  color: var(--text-primary);
  cursor: pointer;
  transition: all 0.25s ease;
  font-family: inherit;
}
.cookie-btn:hover { border-color: var(--accent); }
.cookie-accept {
  background: var(--accent);
  color: #fff;
  border-color: var(--accent);
}
.cookie-accept:hover {
  opacity: 0.9;
}
.cookie-decline:hover {
  color: var(--text-primary);
}

@media (max-width: 640px) {
  .cookie-content { flex-direction: column; text-align: center; gap: 0.75rem; }
  .cookie-buttons { width: 100%; justify-content: center; }
}

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 1024px) {
  .mini-grid { grid-template-columns: repeat(3, 1fr); }
  .works-grid { grid-template-columns: repeat(2, 1fr); }
  .studio-inner { grid-template-columns: 1fr; gap: 3rem; }
  .contact-inner { grid-template-columns: 1fr; gap: 3rem; }
}

@media (max-width: 768px) {
  .nav-left, .nav-right .nav-links { display: none; }
  .menu-toggle { display: flex; }
  .mobile-menu { display: flex; }
  .nav-inner { padding: 0 1.5rem; }
  .nav-right { gap: 0.75rem; }

  .hero { padding: 0; }
  .hero-content { padding: 0 1.5rem; }

  .artwork-mini { padding: 4rem 1.5rem; }
  .mini-header { margin-bottom: 2.5rem; }
  .mini-grid { grid-template-columns: repeat(2, 1fr); gap: 0.75rem; }
  .mini-label { font-size: 0.6rem; margin-top: 0.625rem; }

  .story-section { padding: 4rem 1.5rem; }
  .story-visual .artwork { aspect-ratio: 4 / 3; }

  .more-works { padding: 4rem 1.5rem; }
  .works-grid { grid-template-columns: repeat(2, 1fr); gap: 1.5rem 1rem; }

  .studio { padding: 4rem 1.5rem; }
  .studio-visual img { aspect-ratio: 4 / 3; }

  .contact { padding: 4rem 1.5rem; }
  .form-row { grid-template-columns: 1fr; }

  .footer-inner { flex-direction: column; text-align: center; gap: 1.5rem; }

  .modal-panel {
    grid-template-columns: 1fr;
    width: 92vw;
    max-height: 85vh;
    overflow-y: auto;
  }
  .modal-visual { padding: 0; }
  .modal-visual .artwork { min-height: 260px; width: 100%; height: 100%; }
  .modal-info { padding: 2rem; }
}

@media (max-width: 480px) {
  .mini-grid { grid-template-columns: repeat(2, 1fr); }
  .works-grid { grid-template-columns: 1fr; }
}

/* ---------- Reduced Motion ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
  .reveal { opacity: 1; transform: none; }
}
