/* ═══════════════════════════════════════════════════════
   LIVINGART — Stitch Design System
   Gallery Curator Modern · Dark Mode · v2.0
   ═══════════════════════════════════════════════════════ */

/* ── Google Fonts ── */
@import url('https://fonts.googleapis.com/css2?family=Bodoni+Moda:ital,opsz,wght@0,6..96,400..900;1,6..96,400..900&family=Hanken+Grotesk:wght@400;500;600;700&family=JetBrains+Mono:wght@400;500&family=Barlow+Condensed:wght@400;600;700;800;900&display=swap');

/* ── Design Tokens ── */
:root {
  /* Core Palette */
  --bg:               #131313;
  --surface:          #131313;
  --surface-low:      #1b1c1c;
  --surface-container:#1f2020;
  --surface-high:     #2a2a2a;
  --surface-highest:  #353535;
  --surface-bright:   #393939;
  --on-surface:       #e4e2e1;
  --on-surface-dim:   #e7bdb8; /* warm-tinted dimmed text */
  --red:              #e62325;
  --red-on:           #ffffff;
  --outline:          rgba(255,255,255,0.10);
  --outline-hover:    rgba(255,255,255,0.30);
  --black:            #0e0e0e;
  --white:            #ffffff;
  --mid-gray:         #999;

  /* Typography */
  --font-display:  'Bodoni Moda', Georgia, serif;
  --font-display-alt: 'Barlow Condensed', sans-serif;
  --font-body:     'Hanken Grotesk', system-ui, sans-serif;
  --font-mono:     'JetBrains Mono', monospace;

  /* Spacing (8px unit) */
  --space-xs:  4px;
  --space-sm:  8px;
  --space-md:  16px;
  --space-lg:  24px;
  --space-xl:  32px;
  --space-2xl: 48px;
  --space-3xl: 64px;
  --space-4xl: 96px;
  --section-gap: 120px;

  /* Layout */
  --max-width:    1440px;
  --margin-h:     60px;
  --header-h:     72px;
}

/* ── Reset ── */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: var(--header-h); font-size: 16px; -webkit-text-size-adjust: 100%; }

body {
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.625;
  color: var(--on-surface);
  background-color: var(--bg);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; color: inherit; }
ul, ol { list-style: none; }

:focus-visible { outline: 2px solid var(--red); outline-offset: 3px; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* ── Skip Link ── */
.skip-link {
  position: absolute; top: -100%; left: var(--space-md); z-index: 10000;
  padding: var(--space-sm) var(--space-md);
  background: var(--red); color: var(--white);
  font-family: var(--font-mono); font-size: 0.75rem; letter-spacing: 0.1em; text-transform: uppercase;
  transition: top 0.2s ease;
}
.skip-link:focus { top: 0; }

/* ── Shared clip-path ── */
.diagonal-cut { clip-path: polygon(15% 0, 100% 0, 100% 100%, 0% 100%); }

/* ═══════════════════════════════════════════════════════
   ANIMATIONS
   ═══════════════════════════════════════════════════════ */

@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(30px); }
  to   { opacity: 1; transform: translateY(0); }
}

@keyframes fadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}

@media (prefers-reduced-motion: no-preference) {
  .animate-fade-in-up {
    animation: fadeInUp 1s cubic-bezier(0.2, 0.8, 0.2, 1) 0.1s both;
  }
  .animate-fade-in {
    animation: fadeIn 1s cubic-bezier(0.2, 0.8, 0.2, 1) 0.3s both;
  }
}

/* Scroll Reveal */
.reveal {
  opacity: 0;
  transform: translateY(32px);
  transition: opacity 0.85s cubic-bezier(0.16,1,0.3,1),
              transform 0.85s cubic-bezier(0.16,1,0.3,1);
}
.reveal.revealed { opacity: 1; transform: translateY(0); }
.reveal-delay-1 { transition-delay: 0.06s; }
.reveal-delay-2 { transition-delay: 0.12s; }
.reveal-delay-3 { transition-delay: 0.18s; }
.reveal-delay-4 { transition-delay: 0.24s; }
.reveal-delay-5 { transition-delay: 0.30s; }

/* ═══════════════════════════════════════════════════════
   TOP FIXED NAVBAR
   ═══════════════════════════════════════════════════════ */

.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  height: var(--header-h);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.48) 0%, rgba(255, 255, 255, 0.32) 100%);
  box-shadow: inset 0 1px 0 0 rgba(255, 255, 255, 0.7), 0 10px 40px -10px rgba(0, 0, 0, 0.08);
  backdrop-filter: blur(28px) saturate(210%);
  -webkit-backdrop-filter: blur(28px) saturate(210%);
  border-bottom: 1px solid rgba(255, 255, 255, 0.35);
  transition: background 0.4s ease, border-color 0.4s ease, box-shadow 0.4s ease;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 var(--margin-h);
  gap: var(--space-xl);
}

/* Brand logo */
.logo-wrapper {
  display: flex;
  align-items: center;
  gap: 2px;
  text-decoration: none;
}
.header-logo {
  height: 32px;
  width: auto;
  display: block;
}
.tm-symbol {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  font-weight: 700;
  color: var(--black);
  transform: translateY(-10px);
  line-height: 1;
  user-select: none;
}

/* Desktop nav */
.header-nav {
  display: flex;
  align-items: center;
  gap: var(--space-lg);
  flex: 1;
  justify-content: center;
}

.header-nav a {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #333333;
  transition: color 0.3s ease;
  position: relative;
}

.header-nav a::after {
  content: '';
  position: absolute;
  bottom: -3px; left: 0;
  width: 0; height: 1px;
  background: var(--red);
  transition: width 0.4s cubic-bezier(0.16,1,0.3,1);
}

.header-nav a:hover, .header-nav a.active { color: var(--black); }
.header-nav a:hover::after, .header-nav a.active::after { width: 100%; }

/* Inquiry button */
.inquiry-btn {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  background: #1f2020;
  color: var(--white);
  padding: 10px 20px;
  border: 1px solid rgba(255,255,255,0.15);
  cursor: pointer;
  flex-shrink: 0;
  transition: background 0.3s ease, border-color 0.3s ease;
}
.inquiry-btn:hover { background: var(--red); border-color: var(--red); color: var(--white); }

/* Hamburger */
.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  width: 40px; height: 40px;
  gap: 5px;
  cursor: pointer;
  flex-shrink: 0;
}
.nav-toggle span {
  display: block;
  width: 22px; height: 1.5px;
  background: var(--black);
  transition: all 0.3s ease;
}

/* Mobile Nav */
.mobile-nav {
  position: fixed;
  top: var(--header-h); right: 0;
  width: 280px; height: calc(100vh - var(--header-h));
  background: var(--surface-container);
  border-left: 1px solid var(--outline);
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: var(--space-2xl) var(--space-xl);
  gap: var(--space-xl);
  transform: translateX(100%);
  transition: transform 0.4s cubic-bezier(0.23,1,0.32,1);
  z-index: 999;
}
.mobile-nav.active { transform: translateX(0); }
.mobile-nav a {
  font-family: var(--font-mono);
  font-size: 0.875rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--on-surface-dim);
  transition: color 0.3s ease;
}
.mobile-nav a:hover { color: var(--on-surface); }
.mobile-nav .mobile-inquiry {
  margin-top: var(--space-lg);
  color: var(--red);
  font-weight: 700;
}

/* ═══════════════════════════════════════════════════════
   HERO SECTION
   ═══════════════════════════════════════════════════════ */

.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  overflow: hidden;
  background: var(--bg);
  padding-top: var(--header-h);
}

/* Bottom fade */
.hero-fade-bottom {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 280px;
  background: linear-gradient(to top, var(--bg) 0%, rgba(19,19,19,0.8) 50%, transparent 100%);
  z-index: 5;
  pointer-events: none;
}

.hero-grid {
  position: relative;
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 var(--margin-h);
  display: grid;
  grid-template-columns: 1.4fr 0.6fr;
  align-items: center;
  min-height: calc(100vh - var(--header-h));
  z-index: 3;
}

/* Left: tagline + CTA */
.hero-left {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  padding-right: var(--space-3xl);
  z-index: 4;
}

.hero-tagline {
  font-family: var(--font-display-alt);
  font-size: clamp(32px, 8vw, 84px);
  font-weight: 900;
  line-height: 1.05;
  letter-spacing: -0.02em;
  text-transform: uppercase;
  font-style: normal;
  color: var(--on-surface);
  margin-bottom: var(--space-2xl);
}

.tagline-red { color: var(--red); }

.hero-cta {
  display: inline-flex;
  align-items: center;
  gap: var(--space-sm);
  padding: 16px 32px;
  background: rgba(19, 19, 19, 0.65);
  border: 1px solid rgba(255, 255, 255, 0.4);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--on-surface);
  transition: background 0.3s ease, border-color 0.3s ease, transform 0.3s ease;
}
.hero-cta:hover { background: var(--red); border-color: var(--red); color: var(--white); transform: translateY(-2px); }
.cta-arrow { font-size: 1rem; transition: transform 0.3s ease; }
.hero-cta:hover .cta-arrow { transform: translateX(4px); }

/* Right: diagonal red panel shifted more right */
.hero-red-panel {
  position: absolute;
  right: 0; top: 0; bottom: 0;
  width: 38%;
  background: linear-gradient(135deg, #e62325 0%, #a31416 100%);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  z-index: 2;
  opacity: 0.95;
  clip-path: polygon(25% 0, 100% 0, 100% 100%, 0% 100%);
}

.hero-panel-nav {
  display: flex;
  flex-direction: column;
  gap: var(--space-lg);
  opacity: 0.7;
}

.hero-panel-nav a {
  position: relative;
  overflow: hidden;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--white);
  border-bottom: 1px solid rgba(255,255,255,0.2);
  padding: var(--space-md) var(--space-lg);
  width: 240px;
  transition: opacity 0.3s ease, border-color 0.3s ease;
  z-index: 1;
}

.hero-panel-nav a span {
  position: relative;
  z-index: 2;
  pointer-events: none;
}

.hero-panel-nav a::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background: radial-gradient(circle at var(--mouse-x, 50%) var(--mouse-y, 50%), rgba(0,0,0,0.85) 0%, rgba(0,0,0,0) 80%);
  opacity: 0;
  transition: opacity 0.3s ease;
  z-index: 0;
}

.hero-panel-nav a:hover::before {
  opacity: 1;
}

.hero-panel-nav a:hover {
  opacity: 1;
  border-color: rgba(255,255,255,0.5);
}

/* ═══════════════════════════════════════════════════════
   PORTFOLIO / SELECTED WORKS
   ═══════════════════════════════════════════════════════ */

.portfolio {
  padding: var(--section-gap) var(--margin-h);
  max-width: var(--max-width);
  margin: 0 auto;
}

.section-intro {
  text-align: center;
  margin-bottom: var(--space-3xl);
}

.section-eyebrow {
  display: block;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--red);
  margin-bottom: var(--space-md);
}

.section-headline {
  font-family: var(--font-display);
  font-size: clamp(32px, 4vw, 48px);
  font-weight: 700;
  line-height: 1.17;
  text-transform: uppercase;
  letter-spacing: -0.01em;
  color: var(--on-surface);
  margin-bottom: var(--space-md);
}

.section-subtext {
  font-family: var(--font-body);
  font-size: 1.125rem;
  line-height: 1.6;
  color: var(--on-surface-dim);
  font-style: italic;
  max-width: 640px;
  margin: 0 auto;
}

.section-rule {
  width: 48px; height: 2px;
  background: var(--red);
  margin: var(--space-xl) auto 0;
}

/* 12-column portfolio grid — uniform equal card sizing */
.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: var(--space-lg);
}

.col-span-4 { grid-column: span 4; }
.col-span-6 { grid-column: span 6; }
.col-span-3 { grid-column: span 3; }

/* Card base — uniform size */
.portfolio-card {
  position: relative;
  overflow: hidden;
  cursor: pointer;
  border: 1px solid var(--outline);
  transition: border-color 0.4s ease, transform 0.4s cubic-bezier(0.16,1,0.3,1), box-shadow 0.4s ease;
  height: 380px;
}
.portfolio-card:hover, .portfolio-card:focus-visible {
  border-color: rgba(230,35,37,0.6);
  transform: translateY(-4px);
  box-shadow: 0 16px 36px rgba(0,0,0,0.5);
}

.card-tall  { height: 380px; }
.card-short { height: 380px; }

/* Card image — grayscale to color on hover */
.card-img {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  filter: grayscale(1);
  transform: scale(1);
  transition: filter 0.7s ease, transform 0.7s ease, opacity 0.3s ease-in-out;
  opacity: 1;
  will-change: opacity, filter, transform; /* Optimize for animations */
}
.portfolio-card:hover .card-img, .portfolio-card:focus-visible .card-img { filter: grayscale(0); transform: scale(1.05); }

/* Bottom gradient overlay */
.card-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(19,19,19,0.95) 0%, rgba(19,19,19,0.3) 45%, transparent 75%);
}

/* Labels */
.card-label {
  position: absolute;
  bottom: var(--space-md);
  left: var(--space-md);
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--on-surface);
  z-index: 2;
}
.card-label-lg {
  font-family: var(--font-display);
  font-size: clamp(24px, 2.5vw, 32px);
  font-weight: 600;
  line-height: 1.25;
  bottom: var(--space-lg);
  left: var(--space-lg);
  letter-spacing: 0;
  text-shadow: 0 2px 8px rgba(0,0,0,0.8);
}

/* Automobile red-bordered featured card */
.card-featured { border-color: var(--red); }
.card-featured:hover { border-color: var(--red); }

/* ── Section Divider ── */
.section-divider {
  width: 100%;
  height: 1px;
  background: var(--outline);
  margin: var(--space-3xl) 0;
}

/* ═══════════════════════════════════════════════════════
   ABOUT SECTION
   ═══════════════════════════════════════════════════════ */

.about {
  padding: var(--section-gap) var(--margin-h);
  background: rgba(255, 255, 255, 0.65);
  box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.1);
  backdrop-filter: blur(16px) saturate(180%);
  -webkit-backdrop-filter: blur(16px) saturate(180%);
  border-top: 1px solid rgba(255, 255, 255, 0.4);
  border-bottom: 1px solid rgba(255, 255, 255, 0.4);
}

.about-inner {
  max-width: var(--max-width);
  margin: 0 auto;
}

.about-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid rgba(0, 0, 0, 0.12);
  padding-bottom: var(--space-md);
  margin-bottom: var(--space-3xl);
}

.about-label {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--red);
}

.about-est {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--black);
}

.about-headline {
  font-family: var(--font-display-alt);
  font-size: clamp(36px, 5.5vw, 76px);
  font-weight: 900;
  line-height: 1.1;
  letter-spacing: -0.01em;
  text-transform: uppercase;
  font-style: normal;
  color: #000000;
  margin-bottom: var(--space-3xl);
  max-width: 900px;
}

.about-body {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(var(--space-3xl), 6vw, 96px);
  font-family: var(--font-body);
  font-size: 1.125rem;
  line-height: 1.75;
  color: #111111;
}

.about-quote {
  font-style: italic;
  font-weight: 600;
  color: #000000;
  margin-bottom: var(--space-lg);
}

.about-emphasis {
  font-weight: 700;
  color: var(--black);
  margin-top: var(--space-md);
}

/* ═══════════════════════════════════════════════════════
   FOOTER
   ═══════════════════════════════════════════════════════ */

.site-footer {
  background: var(--black);
  border-top: 1px solid var(--outline);
  padding: var(--space-3xl) var(--margin-h);
}

.footer-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: var(--space-lg);
}

.footer-copy {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.05em;
  color: rgba(255, 255, 255, 0.5);
}

.footer-links {
  display: flex;
  gap: var(--space-lg);
}

.footer-links a {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--white);
  transition: color 0.3s ease;
}
.footer-links a:hover { color: var(--red); }

/* ═══════════════════════════════════════════════════════
   CONTACT PAGE
   ═══════════════════════════════════════════════════════ */

.contact-section {
  padding: calc(var(--header-h) + var(--section-gap)) var(--margin-h) var(--section-gap);
  min-height: 100vh;
  background: var(--bg);
}

.contact-inner {
  max-width: 900px;
  margin: 0 auto;
}

.contact-headline {
  font-family: var(--font-display);
  font-size: clamp(48px, 6vw, 72px);
  font-weight: 800;
  font-style: italic;
  line-height: 1.05;
  letter-spacing: -0.02em;
  text-transform: uppercase;
  color: var(--on-surface);
  margin-bottom: var(--space-3xl);
}

.contact-form { display: flex; flex-direction: column; gap: var(--space-2xl); }

.form-group { display: flex; flex-direction: column; gap: var(--space-sm); }

.form-label {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--on-surface-dim);
}

.form-input, .form-textarea {
  background: transparent;
  border: none;
  border-bottom: 1px solid var(--outline);
  color: var(--on-surface);
  font-family: var(--font-body);
  font-size: 1rem;
  padding: var(--space-sm) 0;
  outline: none;
  transition: border-color 0.3s ease;
  width: 100%;
}
.form-input:focus, .form-textarea:focus { border-bottom-color: var(--red); }
.form-textarea { resize: vertical; min-height: 120px; }

.form-submit {
  align-self: flex-start;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  background: var(--on-surface);
  color: var(--bg);
  padding: 16px 40px;
  border: none;
  cursor: pointer;
  transition: background 0.3s ease, color 0.3s ease;
}
.form-submit:hover { background: var(--red); color: var(--white); }

/* Contact Layout & Helper Cards */
.contact-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-3xl);
  margin-top: var(--space-2xl);
}

@media (max-width: 868px) {
  .contact-layout {
    grid-template-columns: 1fr;
    gap: var(--space-2xl);
  }
}

.contact-info-list {
  display: flex;
  flex-direction: column;
  gap: var(--space-xl);
}

.contact-info-card {
  padding: var(--space-lg);
  background: var(--surface-low);
  border: 1px solid var(--outline);
  transition: border-color 0.3s ease;
}

.contact-info-card:hover {
  border-color: var(--outline-hover);
}

.contact-info-val {
  font-family: var(--font-display);
  font-size: clamp(1.25rem, 2.5vw, 1.75rem);
  font-weight: 500;
  color: var(--on-surface);
  margin-top: var(--space-xs);
  display: block;
}

.contact-info-val a {
  color: inherit;
  transition: color 0.3s ease;
}

.contact-info-val a:hover {
  color: var(--red);
}

.contact-disclaimer-box {
  margin-top: var(--space-3xl);
  padding: var(--space-xl);
  background: var(--surface-container);
  border-left: 3px solid var(--red);
  border-top: 1px solid var(--outline);
  border-right: 1px solid var(--outline);
  border-bottom: 1px solid var(--outline);
}

.disclaimer-heading {
  font-family: var(--font-mono);
  font-size: 0.875rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--red);
  margin-bottom: var(--space-md);
}

.disclaimer-text {
  font-family: var(--font-body);
  font-size: 0.9375rem;
  line-height: 1.6;
  color: var(--on-surface-dim);
}

.disclaimer-text p + p {
  margin-top: var(--space-sm);
}

/* ═══════════════════════════════════════════════════════
   CLIENTS PAGE
   ═══════════════════════════════════════════════════════ */

.clients-page {
  padding: calc(var(--header-h) + var(--section-gap)) var(--margin-h) var(--section-gap);
  background: var(--bg);
  min-height: 100vh;
}

/* ═══════════════════════════════════════════════════════
   SHOWCASE / PROJECT DETAIL PAGE (FOOD VILLA)
   ═══════════════════════════════════════════════════════ */

.showcase-page {
  padding: calc(var(--header-h) + var(--space-3xl)) var(--margin-h) var(--section-gap);
  background: var(--bg);
  min-height: 100vh;
}

.showcase-inner {
  max-width: 1100px;
  margin: 0 auto;
}

.showcase-eyebrow {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--red);
  display: block;
  margin-bottom: var(--space-xs);
}

.showcase-title {
  font-family: var(--font-display);
  font-size: clamp(36px, 5vw, 64px);
  font-weight: 800;
  line-height: 1.1;
  color: var(--on-surface);
  margin-bottom: var(--space-sm);
}

.showcase-subtitle {
  font-family: var(--font-display-alt);
  font-size: clamp(20px, 3vw, 28px);
  color: var(--red);
  font-weight: 700;
  margin-bottom: var(--space-2xl);
}

.artwork-frame-container {
  position: relative;
  border: 1px solid var(--outline);
  background: var(--surface-low);
  padding: var(--space-md);
  margin-bottom: var(--space-3xl);
  box-shadow: 0 20px 50px rgba(0,0,0,0.5);
}

.artwork-frame-container img {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
  border: 1px solid rgba(255,255,255,0.05);
}

.artwork-meta-bar {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  margin-top: var(--space-md);
  padding-top: var(--space-md);
  border-top: 1px solid var(--outline);
  gap: var(--space-md);
  font-family: var(--font-mono);
  font-size: 0.8125rem;
  color: var(--on-surface-dim);
}

.artwork-meta-item strong {
  color: var(--on-surface);
}

.lang-switch-wrapper {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  margin-bottom: var(--space-2xl);
  border-bottom: 1px solid var(--outline);
  padding-bottom: var(--space-md);
}

.lang-btn {
  font-family: var(--font-mono);
  font-size: 0.8125rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 8px 20px;
  border: 1px solid var(--outline);
  background: var(--surface-low);
  color: var(--on-surface-dim);
  cursor: pointer;
  transition: all 0.3s ease;
}

.lang-btn.active, .lang-btn:hover {
  background: var(--red);
  color: var(--white);
  border-color: var(--red);
}

.story-grid-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-3xl);
  align-items: start;
}

@media (max-width: 868px) {
  .story-grid-layout {
    grid-template-columns: 1fr;
    gap: var(--space-2xl);
  }
}

.story-col {
  background: var(--surface-container);
  border: 1px solid var(--outline);
  padding: var(--space-2xl);
  position: relative;
}

.story-col::before {
  content: '';
  position: absolute;
  top: 0; left: 0;
  width: 4px; height: 100%;
  background: var(--red);
}

.story-col-lang-tag {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--red);
  display: inline-block;
  margin-bottom: var(--space-md);
}

.story-col h2 {
  font-family: var(--font-display);
  font-size: 1.75rem;
  color: var(--on-surface);
  margin-bottom: var(--space-lg);
  line-height: 1.2;
}

.story-section-title {
  font-family: var(--font-display-alt);
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--on-surface);
  margin-top: var(--space-xl);
  margin-bottom: var(--space-sm);
  border-bottom: 1px dashed var(--outline);
  padding-bottom: var(--space-xs);
}

.story-p {
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.7;
  color: var(--on-surface-dim);
  margin-bottom: var(--space-md);
}

.story-quote-box {
  margin-top: var(--space-2xl);
  padding: var(--space-lg);
  background: var(--surface-high);
  border-left: 2px solid var(--red);
  font-style: italic;
  font-family: var(--font-display);
  font-size: 1.125rem;
  color: var(--on-surface);
}

.clients-page-inner { max-width: 900px; margin: 0 auto; }

.clients-page-header { margin-bottom: var(--space-3xl); }

.clients-label {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--red);
  display: block;
  margin-bottom: var(--space-md);
}

.clients-headline {
  font-family: var(--font-display);
  font-size: clamp(48px, 6vw, 72px);
  font-weight: 800;
  font-style: italic;
  line-height: 1.05;
  letter-spacing: -0.02em;
  text-transform: uppercase;
  color: var(--on-surface);
  margin-bottom: var(--space-md);
}

.clients-subtitle {
  font-family: var(--font-body);
  font-size: 1rem;
  color: var(--on-surface-dim);
}

.clients-list {
  list-style: none;
  border-top: 1px solid var(--outline);
}
.clients-list li { border-bottom: 1px solid var(--outline); }

.client-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--space-lg) 0;
  color: var(--on-surface);
  transition: padding 0.3s ease, background 0.3s ease;
}
.client-link:hover { padding-left: var(--space-md); padding-right: var(--space-md); background: var(--surface-container); }

.client-name {
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 4vw, 2.25rem);
  font-weight: 400;
  letter-spacing: -0.01em;
}

.client-arrow {
  font-size: 1.5rem;
  color: var(--red);
  transition: transform 0.3s ease;
}
.client-link:hover .client-arrow { transform: translate(4px, -4px); }

/* ═══════════════════════════════════════════════════════
   RESPONSIVE — TABLET
   ═══════════════════════════════════════════════════════ */

@media (max-width: 1024px) {
  :root { --margin-h: 40px; }

  .col-span-6 { grid-column: span 6; }
  .col-span-3 { grid-column: span 6; }

  .hero-left { padding-right: var(--space-xl); }
}

/* ═══════════════════════════════════════════════════════
   RESPONSIVE — MOBILE
   ═══════════════════════════════════════════════════════ */

@media (max-width: 768px) {
  :root {
    --margin-h: 20px;
    --section-gap: 80px;
    --header-h: 64px;
  }

  .header-nav, .inquiry-btn { display: none; }
  .nav-toggle { display: flex; }

  .hero-grid { grid-template-columns: 1fr; padding: var(--space-3xl) var(--margin-h); }
  .hero-left { padding-right: 0; }
  .hero-red-panel { width: 55%; clip-path: polygon(25% 0, 100% 0, 100% 100%, 0% 100%); opacity: 0.18; }
  .hero-panel-nav { display: none; }

  .portfolio { padding: var(--section-gap) var(--margin-h); }
  .portfolio-grid { grid-template-columns: repeat(2, 1fr); gap: var(--space-md); }
  .col-span-4 { grid-column: span 1; }
  .card-tall, .card-short, .portfolio-card { height: 350px; }

  .about { padding: var(--section-gap) var(--margin-h); }
  .about-header { flex-direction: column; align-items: flex-start; gap: var(--space-sm); }
  .about-body { grid-template-columns: 1fr; gap: var(--space-2xl); }

  .footer-inner { flex-direction: column; align-items: center; text-align: center; }
  .footer-links { flex-wrap: wrap; justify-content: center; gap: var(--space-md); }

  /* Lightbox mobile */
  .lightbox-container { width: 100vw; height: 100vh; padding: var(--space-md); }
  .lightbox-image-wrapper { padding: 0 var(--space-xl); }
  .lightbox-nav { width: 36px; height: 36px; }
  .lightbox-thumbnails { max-width: 60%; }
}

@media (max-width: 480px) {
  .portfolio-grid { grid-template-columns: 1fr; gap: var(--space-md); }
  .col-span-4 { grid-column: span 1; }
  .card-tall, .card-short, .portfolio-card { height: 280px; }
  .hero-red-panel { display: none; }
  .lightbox-thumbnails { display: none; }
}


/* ═══════════════════════════════════════════════════════
   LIGHTBOX / GALLERY MODAL
   ═══════════════════════════════════════════════════════ */

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.4s ease, visibility 0.4s ease;
}

.lightbox.active {
  opacity: 1;
  visibility: visible;
}

.lightbox-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(14, 14, 14, 0.96);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
}

.lightbox-container {
  position: relative;
  z-index: 1;
  width: 90vw;
  height: 90vh;
  max-width: 1200px;
  display: flex;
  flex-direction: column;
}

.lightbox-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--space-md) 0;
  flex-shrink: 0;
}

.lightbox-title {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.25rem;
  text-transform: uppercase;
  color: var(--white);
  letter-spacing: 1px;
}

.lightbox-close {
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 50%;
  font-size: 1.25rem;
  color: var(--white);
  transition: all 0.3s ease;
}

.lightbox-close:hover {
  background: var(--red);
  border-color: var(--red);
}

.lightbox-body {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  min-height: 0;
}

.lightbox-image-wrapper {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 var(--space-3xl);
}

.lightbox-image {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  border-radius: 4px;
  transition: opacity 0.3s ease;
}

.lightbox-image.loading {
  opacity: 0.3;
}

.lightbox-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 50%;
  color: var(--white);
  font-size: 1.125rem;
  transition: all 0.3s ease;
  z-index: 2;
}

.lightbox-nav:hover {
  background: var(--red);
  border-color: var(--red);
}

.lightbox-prev {
  left: 0;
}

.lightbox-next {
  right: 0;
}

.lightbox-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--space-md) 0;
  flex-shrink: 0;
}

.lightbox-counter {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.75rem;
  letter-spacing: 2px;
  color: var(--mid-gray);
}

.lightbox-thumbnails {
  display: flex;
  gap: var(--space-sm);
  overflow-x: auto;
  padding: var(--space-xs) 0;
  max-width: 70%;
}

.lightbox-thumb {
  width: 56px;
  height: 40px;
  border-radius: 3px;
  overflow: hidden;
  cursor: pointer;
  border: 2px solid transparent;
  flex-shrink: 0;
  opacity: 0.4;
  transition: all 0.3s ease;
}

.lightbox-thumb.active {
  border-color: var(--red);
  opacity: 1;
}

.lightbox-thumb:hover {
  opacity: 0.8;
}

.lightbox-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* ═══════════════════════════════════════════════════════
   SCROLL REVEAL ANIMATIONS — Refined Gallery Entrance
   ═══════════════════════════════════════════════════════ */

.reveal {
  opacity: 0;
  transform: translateY(40px) scale(0.97);
  transition: opacity 0.9s cubic-bezier(0.16, 1, 0.3, 1),
              transform 0.9s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal.revealed {
  opacity: 1;
  transform: translateY(0) scale(1);
}

/* Elegant staggered entrance — each card cascades in smoothly */
.portfolio-card.reveal:nth-child(1)  { transition-delay: 0.00s; }
.portfolio-card.reveal:nth-child(2)  { transition-delay: 0.08s; }
.portfolio-card.reveal:nth-child(3)  { transition-delay: 0.16s; }
.portfolio-card.reveal:nth-child(4)  { transition-delay: 0.24s; }
.portfolio-card.reveal:nth-child(5)  { transition-delay: 0.32s; }
.portfolio-card.reveal:nth-child(6)  { transition-delay: 0.40s; }
.portfolio-card.reveal:nth-child(7)  { transition-delay: 0.10s; }
.portfolio-card.reveal:nth-child(8)  { transition-delay: 0.18s; }
.portfolio-card.reveal:nth-child(9)  { transition-delay: 0.26s; }
.portfolio-card.reveal:nth-child(10) { transition-delay: 0.34s; }
.portfolio-card.reveal:nth-child(11) { transition-delay: 0.42s; }

.reveal-delay-1 { transition-delay: 0.05s; }
.reveal-delay-2 { transition-delay: 0.10s; }
.reveal-delay-3 { transition-delay: 0.15s; }
.reveal-delay-4 { transition-delay: 0.20s; }
.reveal-delay-5 { transition-delay: 0.25s; }
.reveal-delay-6 { transition-delay: 0.30s; }

/* ── Subtle Ambient Shimmer ──
   A barely-perceptible inner glow that gives tiles a living quality
   without the distracting constant motion of the old float system */

@keyframes cardShimmer {
  0%   { box-shadow: inset 0 0 0 rgba(255, 255, 255, 0); }
  50%  { box-shadow: inset 0 1px 30px rgba(255, 255, 255, 0.02); }
  100% { box-shadow: inset 0 0 0 rgba(255, 255, 255, 0); }
}

.portfolio-card.revealed {
  animation: cardShimmer 6s ease-in-out infinite;
}

.portfolio-card.revealed:nth-child(odd)  { animation-delay: -2s; }
.portfolio-card.revealed:nth-child(even) { animation-delay: -4s; }

/* ═══════════════════════════════════════════════════════
   RESPONSIVE — TABLET
   ═══════════════════════════════════════════════════════ */

@media (max-width: 1024px) {
  .portfolio-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .foundation-grid {
    grid-template-columns: 1fr;
    gap: var(--space-2xl);
  }

  .production-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .footer-top {
    grid-template-columns: 1fr 1fr;
    gap: var(--space-xl);
  }
}

/* ═══════════════════════════════════════════════════════
   RESPONSIVE — MOBILE
   ═══════════════════════════════════════════════════════ */

@media (max-width: 768px) {
  :root {
    --header-height: 64px;
  }

  .nav-toggle {
    display: flex;
  }

  .header-nav {
    display: none;
  }

  .side-menu {
    position: fixed;
    top: 0;
    right: 0;
    width: 280px;
    height: 100vh;
    margin-right: 0;
    background: var(--charcoal);
    flex-direction: column;
    justify-content: center;
    transform: translateX(100%);
    transition: transform 0.4s cubic-bezier(0.23, 1, 0.32, 1);
    box-shadow: -8px 0 40px rgba(0, 0, 0, 0.5);
    z-index: 1000;
  }

  .side-menu.active {
    transform: translateX(0);
  }

  .side-menu-item {
    font-size: 1rem;
    letter-spacing: 3px;
    padding: 24px 32px;
    border-color: rgba(255, 255, 255, 0.08);
  }

  .hero {
    padding-right: 50%;
  }

  .hero::before {
    width: 50%;
    clip-path: polygon(25% 0, 100% 0, 100% 100%, 0% 100%);
    opacity: 0.7;
  }

  .hero .hero-glass-overlay {
    width: 50%;
    clip-path: polygon(25% 0, 100% 0, 100% 100%, 0% 100%);
  }

  .hero-logo {
    height: 56px;
  }

  .portfolio-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-md);
  }

  .production-grid {
    grid-template-columns: 1fr;
  }

  .foundation-stats {
    grid-template-columns: repeat(2, 1fr);
  }

  .footer-top {
    grid-template-columns: 1fr;
    gap: var(--space-xl);
  }

  .footer-bottom {
    flex-direction: column;
    gap: var(--space-md);
    text-align: center;
  }

  /* Lightbox mobile */
  .lightbox-container {
    width: 100vw;
    height: 100vh;
    padding: var(--space-md);
  }

  .lightbox-image-wrapper {
    padding: 0 var(--space-xl);
  }

  .lightbox-nav {
    width: 36px;
    height: 36px;
  }

  .lightbox-thumbnails {
    max-width: 60%;
  }
}

@media (max-width: 480px) {
  .portfolio-grid {
    grid-template-columns: 1fr;
  }

  .portfolio-grid .portfolio-card:nth-child(1),
  .portfolio-grid .portfolio-card:nth-child(2) {
    grid-column: span 1;
  }

  .foundation-stats {
    grid-template-columns: 1fr;
  }

  .hero::before {
    display: none;
  }

  .hero {
    background: linear-gradient(135deg, var(--black) 60%, var(--red) 100%);
  }

  .lightbox-thumbnails {
    display: none;
  }
}

/* ═══════════════════════════════════════════════════════
   MUSEUM GALLERY (Canvas Section)
   ═══════════════════════════════════════════════════════ */

.museum-gallery {
  position: fixed;
  inset: 0;
  z-index: 10000;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.6s ease, visibility 0.6s ease;
  cursor: grab;
}

.museum-gallery.active {
  opacity: 1;
  visibility: visible;
}

.museum-gallery.dragging {
  cursor: grabbing;
}

.museum-scene {
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  position: relative;
  overflow: hidden;
}

/* ── Ceiling ── */
.museum-ceiling {
  height: 12%;
  min-height: 60px;
  background: linear-gradient(180deg, #C8C0B4 0%, #D6CFC4 60%, #DDD7CE 100%);
  position: relative;
  flex-shrink: 0;
  z-index: 2;
}

/* Crown molding */
.museum-ceiling::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 20px;
  background:
    linear-gradient(180deg,
      #B8B0A4 0%,
      #E0D9D0 3px,
      #C8C0B4 5px,
      #DDD7CE 8px,
      #B8B0A4 10px,
      #E8E2DA 12px,
      transparent 20px
    );
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

/* Ceiling track lights */
.museum-ceiling .track-light {
  position: absolute;
  bottom: 24px;
  width: 8px;
  height: 16px;
  background: #2A2A2A;
  border-radius: 2px 2px 4px 4px;
  z-index: 3;
}

.museum-ceiling .track-light::after {
  content: '';
  position: absolute;
  top: -4px;
  left: -6px;
  right: -6px;
  height: 6px;
  background: #333;
  border-radius: 2px;
}

/* ── Wall ── */
.museum-wall {
  flex: 1;
  display: flex;
  align-items: center;
  gap: 0;
  overflow-x: auto;
  overflow-y: hidden;
  scroll-behavior: auto;
  -ms-overflow-style: none;
  scrollbar-width: none;
  position: relative;

  /* Museum wall color & subtle texture */
  background-color: #E8E0D4;
  background-image:
    repeating-linear-gradient(
      90deg,
      transparent,
      transparent 200px,
      rgba(0,0,0,0.008) 200px,
      rgba(0,0,0,0.008) 201px
    ),
    repeating-linear-gradient(
      0deg,
      transparent,
      transparent 200px,
      rgba(0,0,0,0.005) 200px,
      rgba(0,0,0,0.005) 201px
    ),
    radial-gradient(ellipse at 30% 50%, rgba(255,255,240,0.3) 0%, transparent 60%),
    radial-gradient(ellipse at 70% 50%, rgba(255,255,240,0.2) 0%, transparent 60%);
}

.museum-wall::-webkit-scrollbar {
  display: none;
}

/* Wall ambient shadow from ceiling */
.museum-wall::before {
  content: '';
  position: sticky;
  left: 0;
  top: 0;
  width: 100%;
  height: 60px;
  background: linear-gradient(180deg, rgba(0,0,0,0.12) 0%, transparent 100%);
  pointer-events: none;
  z-index: 1;
  flex-shrink: 0;
}

/* ── Floor ── */
.museum-floor {
  height: 12%;
  min-height: 70px;
  position: relative;
  flex-shrink: 0;
  z-index: 2;
  background:
    linear-gradient(90deg,
      #3D2E1F 0%, #4A3828 15%, #3D2E1F 30%,
      #4A3828 45%, #3D2E1F 60%, #4A3828 75%, #3D2E1F 100%
    );
  background-size: 300px 100%;
}

/* Baseboard */
.museum-floor::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 18px;
  background:
    linear-gradient(180deg,
      #F0EBE3 0%,
      #E8E2DA 4px,
      #DDD7CE 8px,
      #E8E2DA 10px,
      #D4CFC8 14px,
      #C8C0B4 18px
    );
  box-shadow: 0 -2px 8px rgba(0, 0, 0, 0.1);
}

/* Floor reflection */
.museum-floor::after {
  content: '';
  position: absolute;
  top: 18px;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(180deg, rgba(255,255,255,0.04) 0%, transparent 40%);
  pointer-events: none;
}

/* ── Painting Container ── */
.painting-container {
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  position: relative;
  padding: 0 clamp(60px, 8vw, 140px);
  transition: transform 0.5s cubic-bezier(0.23, 1, 0.32, 1);
}

/* ── Hanging Wire ── */
.painting-wire {
  width: 2px;
  height: clamp(30px, 5vh, 60px);
  position: relative;
  margin-bottom: -2px;
  z-index: 1;
}

.painting-wire::before {
  content: '';
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 1px;
  height: 100%;
  background: linear-gradient(180deg, #888 0%, #666 100%);
}

/* Hook */
.painting-wire::after {
  content: '';
  position: absolute;
  top: -4px;
  left: 50%;
  transform: translateX(-50%);
  width: 10px;
  height: 10px;
  border: 2px solid #777;
  border-radius: 50%;
  background: transparent;
}

/* Two diagonal wires from hook to frame corners */
.painting-wire-left,
.painting-wire-right {
  position: absolute;
  top: 0;
  height: 100%;
  width: 50%;
}

/* ── Spotlight Effect ── */
.painting-spotlight {
  position: absolute;
  top: -120px;
  left: 50%;
  transform: translateX(-50%);
  width: 550px;
  height: 650px;
  pointer-events: none;
  z-index: 0;
  transition: opacity 0.6s ease;
  mix-blend-mode: screen;
  clip-path: polygon(35% 0, 65% 0, 100% 100%, 0 100%);

  /* Realistic volumetric light cone */
  background:
    radial-gradient(
      ellipse 40% 60% at 50% 0%,
      rgba(255, 235, 180, 0.25) 0%,
      rgba(255, 225, 150, 0.05) 50%,
      transparent 80%
    ),
    linear-gradient(180deg, rgba(255, 255, 255, 0.15) 0%, transparent 40%);
}

.painting-container:hover .painting-spotlight {
  background:
    radial-gradient(
      ellipse 40% 60% at 50% 0%,
      rgba(255, 235, 180, 0.4) 0%,
      rgba(255, 225, 150, 0.1) 50%,
      transparent 80%
    ),
    linear-gradient(180deg, rgba(255, 255, 255, 0.2) 0%, transparent 40%);
}

/* ── Picture Frame — Natural Wood Grain ── */
.painting-frame {
  position: relative;
  z-index: 2;
  cursor: pointer;
  transition: transform 0.5s cubic-bezier(0.23, 1, 0.32, 1);
  padding: clamp(15px, 2.5vw, 25px);

  /* Pure CSS natural light oak wood grain */
  background:
    /* Fine grain lines */
    repeating-linear-gradient(
      178deg,
      transparent 0px,
      transparent 2px,
      rgba(120, 80, 40, 0.05) 2px,
      rgba(120, 80, 40, 0.05) 3px,
      transparent 3px,
      transparent 7px
    ),
    /* Medium grain variation */
    repeating-linear-gradient(
      176deg,
      transparent 0px,
      transparent 8px,
      rgba(150, 100, 50, 0.08) 8px,
      rgba(150, 100, 50, 0.08) 10px,
      transparent 10px,
      transparent 22px
    ),
    /* Wide grain bands */
    repeating-linear-gradient(
      179deg,
      transparent 0px,
      transparent 18px,
      rgba(130, 90, 40, 0.06) 18px,
      rgba(130, 90, 40, 0.04) 22px,
      transparent 22px,
      transparent 45px
    ),
    /* Base wood color — natural light oak */
    linear-gradient(175deg, #e6c594 0%, #d1ae7b 20%, #e8c999 40%, #c49f69 60%, #e6c594 80%, #b8925c 100%);

  /* Outer rigid edge */
  border: 1px solid #5c452e;

  /* Luxurious stepped inner profile & outer wall shadows */
  box-shadow:
    /* Stepped frame drops — using softer mid-tones for light wood */
    inset 0 0 0 2px rgba(255, 255, 255, 0.2),
    inset 0 0 0 4px rgba(160, 120, 80, 0.6),
    inset 0 0 0 5px #8c6b4a,
    inset 0 0 0 7px rgba(100, 70, 40, 0.9),
    inset 0 0 15px 9px rgba(60, 40, 20, 0.5),
    /* Soft + sharp wall shadow */
    10px 15px 25px rgba(0, 0, 0, 0.3),
    20px 30px 60px rgba(0, 0, 0, 0.2),
    0 5px 10px rgba(0, 0, 0, 0.3);
}

.painting-frame:hover {
  transform: scale(1.02);
}

/* Inner mat / mount */
.painting-mat {
  background: #F8F6F0;
  padding: clamp(20px, 3.5vw, 45px);
  position: relative;
  /* SVG Noise for subtle watercolor paper texture */
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.8' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)' opacity='0.04'/%3E%3C/svg%3E");
  
  box-shadow:
    /* Outer drop shadow inside the frame */
    0 0 10px rgba(0,0,0,0.8),
    /* Bevel cut around the image */
    inset 0 0 0 1px rgba(0, 0, 0, 0.1),
    inset 2px 2px 5px rgba(0, 0, 0, 0.15),
    inset -1px -1px 2px rgba(255, 255, 255, 0.8);
}

.painting-mat img {
  display: block;
  max-height: clamp(200px, 42vh, 450px);
  max-width: clamp(250px, 35vw, 550px);
  width: auto;
  height: auto;
  object-fit: contain;
  filter: contrast(1.02) saturate(1.05);
  box-shadow: 2px 2px 4px rgba(0,0,0,0.1); /* Slight lift off the mat */
}

/* ── Brass Plaque — Realistic Aged Brass ── */
.painting-plaque {
  margin-top: clamp(12px, 1.5vh, 20px);
  padding: 8px 18px 10px; /* Extra padding on bottom to prevent text clipping */
  max-width: 220px;
  display: inline-block;
  text-align: center;
  position: relative;
  z-index: 2;
  border-radius: 2px;

  /* Photorealistic brushed brass using conic gradient reflections */
  background: 
    linear-gradient(
      135deg, 
      rgba(255,255,255,0.4) 0%, 
      transparent 20%, 
      transparent 80%, 
      rgba(0,0,0,0.3) 100%
    ),
    conic-gradient(
      from 45deg at 50% 50%,
      #b8983e, #d4af37, #f3e5ab, #d4af37, #8a6a1c, #d4af37, #f3e5ab, #d4af37, #b8983e
    );
  
  /* Oxidized dark edge */
  border: 1px solid #4a3510;
  
  box-shadow:
    /* Inner bright bevel */
    inset 1px 1px 2px rgba(255, 255, 255, 0.8),
    inset -1px -1px 2px rgba(0, 0, 0, 0.6),
    /* Wall shadow */
    0 4px 6px rgba(0, 0, 0, 0.4),
    0 1px 3px rgba(0, 0, 0, 0.3);
}

/* Plaque Screw holes */
.painting-plaque::before,
.painting-plaque::after {
  content: '';
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: #3a2b10;
  box-shadow:
    inset 1px 1px 1px rgba(0,0,0,0.8),
    0 1px 0 rgba(255,255,255,0.5);
}

.painting-plaque::before { left: 6px; }
.painting-plaque::after { right: 6px; }

.plaque-title {
  display: block;
  font-family: var(--font-serif);
  font-size: 0.65rem;
  line-height: 1.2;
  letter-spacing: 0.5px;
  /* Deep engraved effect */
  color: #2b200b;
  text-shadow: 
    -0.5px -0.5px 0px rgba(0,0,0,0.3),
    0.5px 0.5px 0px rgba(255,255,255,0.5);
}

.plaque-info {
  display: block;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.45rem;
  line-height: 1.4;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: #3b2d15;
  margin-top: 4px;
  text-shadow: 
    -0.5px -0.5px 0px rgba(0,0,0,0.2),
    0.5px 0.5px 0px rgba(255,255,255,0.4);
}

/* ── Close Button ── */
.museum-close {
  position: fixed;
  top: var(--space-lg);
  right: var(--space-lg);
  z-index: 10002;
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(14, 14, 14, 0.7);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 50%;
  color: var(--white);
  font-size: 1.25rem;
  cursor: pointer;
  transition: all 0.3s ease;
}

.museum-close:hover {
  background: var(--red);
  border-color: var(--red);
}

/* ── Museum Navigation ── */
.museum-nav {
  position: fixed;
  bottom: 14%;
  left: 50%;
  transform: translateX(-50%);
  z-index: 10001;
  display: flex;
  align-items: center;
  gap: var(--space-lg);
  padding: var(--space-sm) var(--space-lg);
  background: rgba(14, 14, 14, 0.75);
  backdrop-filter: blur(12px);
  border-radius: 40px;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.museum-nav button {
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: var(--white);
  font-size: 0.875rem;
  transition: all 0.3s ease;
}

.museum-nav button:hover {
  background: var(--red);
  border-color: var(--red);
}

.museum-nav-counter {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.75rem;
  letter-spacing: 2px;
  color: var(--white);
  min-width: 48px;
  text-align: center;
}

/* ── Scroll Hint ── */
.museum-scroll-hint {
  position: fixed;
  bottom: 22%;
  left: 50%;
  transform: translateX(-50%);
  z-index: 10001;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.625rem;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: rgba(60, 50, 40, 0.5);
  animation: hintFade 3s ease-out 1.5s forwards;
  pointer-events: none;
}

@keyframes hintFade {
  0% { opacity: 1; }
  100% { opacity: 0; visibility: hidden; }
}

/* ── Painting Zoom Modal ── */
.painting-zoom {
  position: fixed;
  inset: 0;
  z-index: 10003;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(14, 14, 14, 0.95);
  backdrop-filter: blur(24px);
  opacity: 0;
  visibility: hidden;
  cursor: zoom-out;
  transition: opacity 0.4s ease, visibility 0.4s ease;
}

.painting-zoom.active {
  opacity: 1;
  visibility: visible;
}

.painting-zoom img {
  max-width: 85vw;
  max-height: 85vh;
}

@keyframes zoomIn {
  from {
    transform: scale(0.85);
    opacity: 0;
  }
  to {
    transform: scale(1);
    opacity: 1;
  }
}

/* ── Museum Responsive ── */
@media (max-width: 768px) {
  .painting-container {
    padding: 0 40px;
  }

  .painting-mat img {
    max-height: 35vh;
    max-width: 70vw;
  }

  .museum-nav {
    bottom: 13%;
  }

  .museum-scroll-hint {
    bottom: 20%;
  }

  .painting-frame {
    padding: 8px;
  }

  .painting-mat {
    padding: 10px;
  }
}

@media (max-width: 480px) {
  .painting-container {
    padding: 0 24px;
  }

  .painting-mat img {
    max-height: 30vh;
    max-width: 80vw;
  }
}

/* ═══════════════════════════════════════════════════════
   UTILITY CLASSES
   ═══════════════════════════════════════════════════════ */

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.body-no-scroll {
  overflow: hidden;
}

/* Visitor Experience Note */
.visitor-experience-note {
  margin-top: 24px;
  padding: 16px 20px;
  background: rgba(230, 35, 37, 0.08);
  border-left: 3px solid var(--red);
  border-radius: 4px;
}

.visitor-experience-note p {
  font-family: var(--font-body);
  font-size: 0.95rem;
  line-height: 1.6;
  color: var(--on-surface);
  margin: 0;
}


