/* ==========================================================================
   DESIGN SYSTEM & VARIABLES (Gothic / Goyesco Palette)
   ========================================================================== */
:root {
  --color-bg-dark: #0a0a0b;
  --color-bg-card: #141416;
  --color-text-primary: #e5e5e7;
  --color-text-secondary: #a1a1a6;
  --color-text-muted: #727278;
  
  /* Theme Accents */
  --color-accent-sepia: #d4c5b3;
  --color-accent-sepia-hover: #e2d8cc;
  --color-accent-green: #2d4a3e;
  --color-accent-red: #9e2a2b;
  --color-accent-red-hover: #bd3a3c;
  --color-accent-red-light: rgba(158, 42, 43, 0.15);
  
  /* Layout */
  --header-height: 80px;
  --container-width: 1200px;
  --transition-smooth: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
  --transition-snappy: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  
  /* Fonts */
  --font-header: 'Philosopher', serif;
  --font-body: 'Philosopher', sans-serif;
  --font-handwritten: 'Special Elite', monospace;
}

/* ==========================================================================
   BASE STYLES & RESET
   ========================================================================== */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
  background-color: var(--color-bg-dark);
  color: var(--color-text-primary);
  font-family: var(--font-body);
}

body {
  min-height: 100vh;
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

/* ==========================================================================
   SCROLLBAR & SELECTION
   ========================================================================== */
::-webkit-scrollbar {
  width: 10px;
}
::-webkit-scrollbar-track {
  background: var(--color-bg-dark);
}
::-webkit-scrollbar-thumb {
  background: #252528;
  border: 2px solid var(--color-bg-dark);
  border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
  background: var(--color-accent-sepia);
}

::selection {
  background-color: var(--color-accent-red);
  color: #fff;
}

/* ==========================================================================
   GOTHIC ATMOSPHERE OVERLAYS
   ========================================================================== */
/* Noise & Scratch overlay */
.scratch-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  pointer-events: none;
  z-index: 9999;
  opacity: 0.04;
  background-image: url('assets/scratch.png'); /* To be generated */
}

/* Heavy vignette shadow */
.vignette-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  pointer-events: none;
  z-index: 9998;
  background: radial-gradient(circle, transparent 40%, rgba(0, 0, 0, 0.8) 100%);
}

/* ==========================================================================
   TYPOGRAPHY
   ========================================================================== */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-header);
  font-weight: 700;
  letter-spacing: 0.05em;
  color: var(--color-text-primary);
}

p {
  color: var(--color-text-secondary);
  font-weight: 300;
  margin-bottom: 1.5rem;
}

strong {
  color: var(--color-text-primary);
  font-weight: 600;
}

.uppercase {
  text-transform: uppercase;
  letter-spacing: 0.15em;
}

.accent-text {
  color: var(--color-accent-sepia);
}

/* ==========================================================================
   BUTTONS & LINKS
   ========================================================================== */
a {
  text-decoration: none;
  color: inherit;
  transition: var(--transition-snappy);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.8rem 2rem;
  font-family: var(--font-header);
  font-size: 0.9rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  border-radius: 2px;
  cursor: pointer;
  transition: var(--transition-smooth);
}

.btn-primary {
  background-color: var(--color-accent-red);
  color: #fff;
  border: 1px solid var(--color-accent-red);
  box-shadow: 0 4px 15px rgba(158, 42, 43, 0.3);
}

.btn-primary:hover {
  background-color: var(--color-accent-red-hover);
  border-color: var(--color-accent-red-hover);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(158, 42, 43, 0.5);
}

.btn-secondary {
  background-color: transparent;
  color: var(--color-accent-sepia);
  border: 1px solid var(--color-accent-sepia);
}

.btn-secondary:hover {
  background-color: var(--color-accent-sepia);
  color: var(--color-bg-dark);
  transform: translateY(-2px);
}

/* ==========================================================================
   HEADER & NAVIGATION
   ========================================================================== */
.main-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: var(--header-height);
  z-index: 1000;
  background-color: rgba(10, 10, 11, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  transition: var(--transition-smooth);
}

.main-header.scrolled {
  height: 65px;
  background-color: rgba(5, 5, 6, 0.95);
  box-shadow: 0 10px 30px rgba(0,0,0,0.5);
}

.header-container {
  max-width: var(--container-width);
  height: 100%;
  margin: 0 auto;
  padding: 0 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo {
  font-family: var(--font-header);
  font-size: 1.5rem;
  font-weight: 900;
  letter-spacing: 0.1em;
  color: var(--color-text-primary);
}

.logo:hover {
  opacity: 0.8;
}

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

.nav-link {
  font-family: var(--font-header);
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-text-secondary);
  position: relative;
  padding: 0.5rem 0;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 1px;
  background-color: var(--color-accent-sepia);
  transition: var(--transition-snappy);
}

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

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

.mobile-nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: space-between;
  width: 24px;
  height: 18px;
  background: transparent;
  border: none;
  cursor: pointer;
  z-index: 1010;
}

.mobile-nav-toggle .bar {
  width: 100%;
  height: 2px;
  background-color: var(--color-text-primary);
  transition: var(--transition-smooth);
}

/* ==========================================================================
   HERO SECTION
   ========================================================================== */
.hero {
  padding-top: calc(var(--header-height) + 4rem);
  padding-bottom: 6rem;
  min-height: 90vh;
  display: flex;
  align-items: center;
  position: relative;
}

.hero-container {
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 0 2rem;
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 4rem;
  align-items: center;
}

.hero-content {
  display: flex;
  flex-direction: column;
}

.hero-tagline {
  font-size: 0.85rem;
  color: var(--color-text-muted);
  font-weight: 600;
  margin-bottom: 1.5rem;
  border-left: 2px solid var(--color-accent-red);
  padding-left: 1rem;
}

.hero-title {
  font-size: clamp(3rem, 5vw, 4.5rem);
  line-height: 1.05;
  margin-bottom: 2rem;
  font-weight: 900;
}

.highlight-title {
  color: var(--color-accent-red);
  display: block;
}

.hero-lead {
  font-size: 1.25rem;
  font-style: italic;
  font-family: var(--font-header);
  color: var(--color-accent-sepia);
  border-left: 3px solid rgba(212, 197, 179, 0.3);
  padding-left: 1.5rem;
  margin-bottom: 2rem;
  line-height: 1.5;
}

.hero-desc {
  font-size: 1.05rem;
  margin-bottom: 2.5rem;
}

.hero-actions {
  display: flex;
  gap: 1.5rem;
}

.cover-wrapper {
  position: relative;
  width: 100%;
  max-width: 480px;
  margin: 0 auto;
}

.book-cover {
  width: 100%;
  height: auto;
  border-radius: 4px;
  border: 1px solid rgba(255,255,255,0.08);
  box-shadow: 0 15px 45px rgba(0,0,0,0.8);
  transition: var(--transition-smooth);
  filter: grayscale(10%) contrast(105%);
}

.cover-wrapper:hover .book-cover {
  transform: scale(1.02) rotate(1deg);
  filter: grayscale(0%) contrast(100%);
  border-color: rgba(255,255,255,0.15);
}

.cover-shadow {
  position: absolute;
  bottom: -20px;
  left: 5%;
  width: 90%;
  height: 40px;
  background: radial-gradient(ellipse at center, rgba(0,0,0,0.6) 0%, transparent 80%);
  z-index: -1;
  pointer-events: none;
}

/* ==========================================================================
   ABOUT BOOK SECTION
   ========================================================================== */
.about-book {
  padding: 8rem 0;
  background-color: var(--color-bg-card);
  border-top: 1px solid rgba(255,255,255,0.02);
  border-bottom: 1px solid rgba(255,255,255,0.02);
  position: relative;
}

.section-container {
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 0 2rem;
}

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

.section-title {
  font-size: 2.5rem;
  margin-bottom: 1rem;
}

.title-divider {
  border: 0;
  height: 2px;
  background: linear-gradient(to right, var(--color-accent-red), transparent);
  width: 150px;
  margin-bottom: 2.5rem;
}

.about-visual {
  display: flex;
  justify-content: center;
  position: relative;
}

.aesthetic-card {
  position: relative;
  background-color: #0c0c0e;
  border: 1px solid rgba(255,255,255,0.03);
  padding: 2.5rem;
  border-radius: 4px;
  width: 100%;
  max-width: 450px;
}

.floating-rat-img {
  width: 160px;
  height: auto;
  display: block;
  margin: 0 auto 2rem;
  filter: drop-shadow(0 10px 20px rgba(0,0,0,0.7));
  transform: rotate(-5deg);
  transition: var(--transition-smooth);
}

.aesthetic-card:hover .floating-rat-img {
  transform: rotate(0deg) scale(1.05);
}

.quote-card {
  border-left: 2px solid var(--color-accent-red);
  padding-left: 1.5rem;
}

.handwritten {
  font-family: var(--font-handwritten);
  font-size: 1.15rem;
  color: var(--color-accent-sepia);
  line-height: 1.6;
  margin-bottom: 1rem;
}

.quote-card cite {
  font-size: 0.85rem;
  color: var(--color-text-muted);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-style: normal;
}

.technical-details {
  margin-top: 3rem;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  border-top: 1px solid rgba(255,255,255,0.05);
  padding-top: 2rem;
}

.detail-item {
  display: flex;
  flex-direction: column;
}

.detail-label {
  font-size: 0.75rem;
  color: var(--color-text-muted);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 0.5rem;
}

.detail-value {
  font-family: var(--font-header);
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--color-accent-sepia);
}

/* ==========================================================================
   TIMELINE SECTION
   ========================================================================== */
.timeline-section {
  padding: 8rem 0;
  position: relative;
}

.center-header {
  text-align: center;
  max-width: 650px;
  margin: 0 auto 5rem;
}

.center-header .section-title {
  margin-bottom: 1.5rem;
}

.section-subtitle {
  font-size: 1.1rem;
  color: var(--color-text-muted);
}

.timeline-container {
  position: relative;
  max-width: 800px;
  margin: 0 auto;
  padding: 2rem 0;
}

.timeline-line {
  position: absolute;
  left: 50%;
  top: 0;
  width: 1px;
  height: 100%;
  background: linear-gradient(to bottom, transparent, rgba(212,197,179,0.3) 10%, rgba(212,197,179,0.3) 90%, transparent);
  transform: translateX(-50%);
}

.timeline-item {
  position: relative;
  width: 50%;
  margin-bottom: 5rem;
  padding: 0 3rem;
}

.timeline-item:nth-child(even) {
  left: 0;
  text-align: right;
}

.timeline-item:nth-child(odd) {
  left: 50%;
  text-align: left;
}

.timeline-dot {
  position: absolute;
  top: 6px;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background-color: var(--color-accent-red);
  border: 3px solid var(--color-bg-dark);
  box-shadow: 0 0 10px var(--color-accent-red);
  z-index: 2;
  transition: var(--transition-smooth);
}

.timeline-item:nth-child(even) .timeline-dot {
  right: -6px;
}

.timeline-item:nth-child(odd) .timeline-dot {
  left: -6px;
}

.timeline-item:hover .timeline-dot {
  transform: scale(1.4);
  background-color: var(--color-text-primary);
  box-shadow: 0 0 15px #fff;
}

.timeline-date {
  font-family: var(--font-header);
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--color-accent-red);
  margin-bottom: 0.8rem;
}

.timeline-content {
  background-color: rgba(20, 20, 22, 0.5);
  border: 1px solid rgba(255,255,255,0.02);
  padding: 2rem;
  border-radius: 4px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.3);
  transition: var(--transition-smooth);
}

.timeline-content:hover {
  border-color: rgba(212, 197, 179, 0.15);
  transform: translateY(-5px);
}

.timeline-content h3 {
  font-size: 1.25rem;
  margin-bottom: 1rem;
}

.scientific-note {
  display: block;
  font-size: 0.8rem;
  color: var(--color-text-muted);
  border-top: 1px solid rgba(255,255,255,0.05);
  margin-top: 1.5rem;
  padding-top: 1rem;
  font-style: italic;
}

.dialogue-block {
  font-family: var(--font-handwritten);
  font-size: 0.95rem;
  color: var(--color-accent-sepia);
  border-left: 2px solid rgba(212,197,179,0.5);
  padding-left: 1rem;
  margin-top: 1.5rem;
  text-align: left;
}

/* Timeline Scroll Animations */
.timeline-item.reveal-ready {
  opacity: 0;
  transition: opacity 1s cubic-bezier(0.25, 1, 0.5, 1), transform 1s cubic-bezier(0.25, 1, 0.5, 1);
}

.timeline-item.reveal-ready:nth-child(even) {
  transform: translateX(-40px);
}

.timeline-item.reveal-ready:nth-child(odd) {
  transform: translateX(40px);
}

.timeline-item.reveal-active {
  opacity: 1;
  transform: translateX(0) !important;
}

@media (max-width: 768px) {
  .timeline-item.reveal-ready:nth-child(even),
  .timeline-item.reveal-ready:nth-child(odd) {
    transform: translateY(30px);
  }
}

/* ==========================================================================
   ARTWORK GALLERY SECTION
   ========================================================================== */
.artwork-section {
  padding: 8rem 0;
  background-color: var(--color-bg-card);
}

.artwork-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 1.5rem;
  margin-top: 3rem;
}

.art-card {
  border-radius: 4px;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,0.04);
  background-color: #0c0c0e;
  cursor: pointer;
  transition: var(--transition-smooth);
}

.art-img-wrapper {
  position: relative;
  width: 100%;
  aspect-ratio: 3/4;
  overflow: hidden;
}

.art-img-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: var(--transition-smooth);
  filter: grayscale(80%) contrast(110%);
}

.art-hover-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(to top, rgba(0,0,0,0.95) 0%, transparent 100%);
  display: flex;
  align-items: flex-end;
  justify-content: center;
  padding: 1.5rem;
  opacity: 0;
  transition: var(--transition-smooth);
}

.art-hover-overlay span {
  font-family: var(--font-header);
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--color-accent-sepia);
}

.art-card:hover {
  transform: translateY(-8px);
  border-color: rgba(212, 197, 179, 0.3);
  box-shadow: 0 15px 35px rgba(0,0,0,0.6);
}

.art-card:hover .art-img-wrapper img {
  transform: scale(1.05);
  filter: grayscale(0%) contrast(100%);
}

.art-card:hover .art-hover-overlay {
  opacity: 1;
}

/* ==========================================================================
   LIGHTBOX MODAL
   ========================================================================== */
.lightbox {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background-color: rgba(5, 5, 6, 0.98);
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: var(--transition-smooth);
}

.lightbox.active {
  opacity: 1;
  pointer-events: auto;
}

.lightbox-content {
  position: relative;
  max-width: 90%;
  max-height: 85%;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.lightbox-content img {
  max-width: 100%;
  max-height: 75vh;
  object-fit: contain;
  border: 1px solid rgba(255,255,255,0.08);
  box-shadow: 0 20px 60px rgba(0,0,0,0.9);
  border-radius: 4px;
}

.lightbox-caption {
  margin-top: 1.5rem;
  font-family: var(--font-header);
  font-size: 1.1rem;
  color: var(--color-accent-sepia);
  text-align: center;
}

.lightbox-close,
.lightbox-prev,
.lightbox-next {
  position: absolute;
  background: transparent;
  border: none;
  color: var(--color-text-secondary);
  font-size: 2.5rem;
  cursor: pointer;
  transition: var(--transition-snappy);
  display: flex;
  align-items: center;
  justify-content: center;
}

.lightbox-close:hover,
.lightbox-prev:hover,
.lightbox-next:hover {
  color: var(--color-text-primary);
}

.lightbox-close {
  top: 2rem;
  right: 2rem;
  width: 44px;
  height: 44px;
}

.lightbox-prev {
  left: 2rem;
  top: 50%;
  transform: translateY(-50%);
}

.lightbox-next {
  right: 2rem;
  top: 50%;
  transform: translateY(-50%);
}

/* ==========================================================================
   CREATORS BIO SECTION
   ========================================================================== */
.authors-section {
  padding: 8rem 0;
  position: relative;
}

.center-divider {
  margin: 0 auto 5rem;
  background: linear-gradient(to right, transparent, var(--color-accent-red), transparent);
}

.authors-grid {
  gap: 4rem;
}

.author-card {
  display: flex;
  background-color: var(--color-bg-card);
  border: 1px solid rgba(255,255,255,0.02);
  border-radius: 4px;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0,0,0,0.2);
  transition: var(--transition-smooth);
}

.author-card:hover {
  border-color: rgba(255,255,255,0.05);
  box-shadow: 0 15px 40px rgba(0,0,0,0.4);
}

.author-img-container {
  position: relative;
  width: 200px;
  min-width: 200px;
  background-color: #0c0c0e;
  overflow: hidden;
}

.author-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: grayscale(100%) contrast(110%);
  transition: var(--transition-smooth);
}

.author-card:hover .author-img {
  filter: grayscale(20%) contrast(100%);
  transform: scale(1.03);
}

.author-avatar-fallback {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: var(--color-accent-green);
  color: var(--color-accent-sepia);
}

.avatar-initials {
  font-family: var(--font-header);
  font-size: 4rem;
  font-weight: 700;
}

.author-role {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  background: rgba(0, 0, 0, 0.8);
  padding: 0.5rem;
  font-family: var(--font-header);
  font-size: 0.75rem;
  font-weight: 700;
  text-align: center;
  color: var(--color-accent-sepia);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.author-info {
  padding: 3rem;
}

.author-info h3 {
  font-size: 1.6rem;
  margin-bottom: 1rem;
}

.author-info p {
  font-size: 0.95rem;
  line-height: 1.7;
}

/* ==========================================================================
   ORDER / NEWSLETTER SECTION
   ========================================================================== */
.order-section {
  padding: 8rem 0;
  background-color: var(--color-bg-card);
  border-top: 1px solid rgba(255,255,255,0.02);
}

.order-box {
  max-width: 800px;
  margin: 0 auto;
  background-color: #0c0c0e;
  border: 1px solid rgba(212,197,179,0.15);
  border-radius: 4px;
  padding: 4rem;
  text-align: center;
  box-shadow: 0 15px 45px rgba(0,0,0,0.6);
  position: relative;
  overflow: hidden;
}

.order-box::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 3px;
  background: linear-gradient(to right, var(--color-accent-green), var(--color-accent-red), var(--color-accent-green));
}

.order-content h2 {
  font-size: 2.2rem;
  margin-bottom: 1.5rem;
}

.order-content p {
  font-size: 1.1rem;
  max-width: 600px;
  margin: 0 auto 3rem;
}

.order-form {
  max-width: 600px;
  margin: 0 auto;
}

.form-group {
  display: flex;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}

.order-form input[type="email"] {
  flex-grow: 1;
  background-color: #141416;
  border: 1px solid rgba(255,255,255,0.1);
  padding: 1rem 1.5rem;
  border-radius: 2px;
  color: var(--color-text-primary);
  font-family: var(--font-body);
  font-size: 1rem;
  transition: var(--transition-snappy);
}

.order-form input[type="email"]:focus {
  outline: none;
  border-color: var(--color-accent-sepia);
  box-shadow: 0 0 10px rgba(212,197,179,0.1);
}

.form-checkbox {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.8rem;
  font-size: 0.85rem;
  color: var(--color-text-muted);
}

.form-checkbox input[type="checkbox"] {
  accent-color: var(--color-accent-red);
}

.form-message {
  margin-top: 1.5rem;
  font-family: var(--font-header);
  font-weight: 700;
  font-size: 1rem;
  transition: var(--transition-smooth);
}

.form-message.success {
  color: var(--color-accent-sepia);
}

.form-message.error {
  color: var(--color-accent-red);
}

/* ==========================================================================
   FOOTER
   ========================================================================== */
.main-footer {
  background-color: var(--color-bg-dark);
  padding: 4rem 0;
  border-top: 1px solid rgba(255,255,255,0.05);
  font-size: 0.85rem;
  color: var(--color-text-muted);
}

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

.footer-logo {
  font-family: var(--font-header);
  font-weight: 700;
  color: var(--color-text-primary);
  font-size: 1.1rem;
  margin-bottom: 0.5rem;
}

.footer-meta {
  margin-bottom: 0.5rem;
}

.footer-isbn {
  font-family: var(--font-body);
  font-size: 0.75rem;
  letter-spacing: 0.05em;
  color: var(--color-text-secondary);
}

.footer-right {
  text-align: right;
}

.footer-right p {
  margin-bottom: 0.5rem;
  font-size: 0.85rem;
}

.footer-link {
  color: var(--color-accent-sepia);
  transition: var(--transition-snappy);
}

.footer-link:hover {
  color: #fff;
  text-decoration: underline;
}

/* ==========================================================================
   LANGUAGE SWITCHER
   ========================================================================== */
body.lang-en .lang-es {
  display: none !important;
}

body.lang-es .lang-en {
  display: none !important;
}

.floating-lang-btn {
  position: fixed;
  bottom: 2rem;
  left: 2rem;
  width: 45px;
  height: 45px;
  background-color: var(--color-bg-card);
  border: 1px solid var(--color-accent-sepia);
  color: var(--color-accent-sepia);
  border-radius: 50%;
  font-family: var(--font-header);
  font-weight: 700;
  font-size: 0.9rem;
  letter-spacing: 0.05em;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.5);
  z-index: 999;
  transition: var(--transition-smooth);
  user-select: none;
}

.floating-lang-btn:hover {
  background-color: var(--color-accent-sepia);
  color: var(--color-bg-dark);
  transform: scale(1.05);
}

/* ==========================================================================
   SCROLL TO TOP BUTTON
   ========================================================================== */
.scroll-top-btn {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  width: 45px;
  height: 45px;
  background-color: var(--color-accent-red);
  color: #fff;
  border: 1px solid var(--color-accent-red);
  border-radius: 4px;
  font-size: 1.25rem;
  font-weight: bold;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.4);
  z-index: 999;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.4s ease, transform 0.4s ease;
  transform: translateY(20px);
}

.scroll-top-btn.visible {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

.scroll-top-btn:hover {
  background-color: var(--color-accent-red-hover);
  border-color: var(--color-accent-red-hover);
  transform: scale(1.05);
}

/* ==========================================================================
   RESPONSIVE DESIGN Breakpoints
   ========================================================================== */
@media (max-width: 1024px) {
  .hero-container {
    grid-template-columns: 1fr;
    gap: 3rem;
    text-align: center;
  }
  .hero-content {
    align-items: center;
  }
  .hero-lead {
    border-left: none;
    border-top: 2px solid rgba(212,197,179,0.3);
    border-bottom: 2px solid rgba(212,197,179,0.3);
    padding: 1.5rem 0;
  }
  .hero-tagline {
    border-left: none;
    padding-left: 0;
  }
  .hero-actions {
    justify-content: center;
  }
  .artwork-grid {
    grid-template-columns: repeat(3, 1fr);
  }
  .grid-2col {
    grid-template-columns: 1fr;
    gap: 3rem;
  }
  .about-visual {
    order: 2;
  }
  .about-text {
    order: 1;
  }
}

@media (max-width: 768px) {
  :root {
    --header-height: 70px;
  }
  
  .mobile-nav-toggle {
    display: flex;
  }
  
  .nav-menu {
    position: fixed;
    top: var(--header-height);
    left: 100%;
    width: 100%;
    height: calc(100vh - var(--header-height));
    background-color: var(--color-bg-dark);
    z-index: 1000;
    transition: var(--transition-smooth);
    padding: 3rem 2rem;
  }
  
  .nav-menu.active {
    left: 0;
  }
  
  .nav-list {
    flex-direction: column;
    align-items: flex-start;
    gap: 2rem;
  }
  
  .nav-link {
    font-size: 1.25rem;
  }
  
  .timeline-line {
    left: 2rem;
  }
  
  .timeline-item {
    width: 100%;
    left: 0 !important;
    text-align: left !important;
    padding-left: 4rem;
    padding-right: 0;
  }
  
  .timeline-dot {
    left: 2rem !important;
    right: auto !important;
    transform: translateX(-50%);
  }
  
  .timeline-item:hover .timeline-dot {
    transform: translateX(-50%) scale(1.4);
  }
  
  .artwork-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .author-card {
    flex-direction: column;
  }
  
  .author-img-container {
    width: 100%;
    height: 250px;
  }
  
  .form-group {
    flex-direction: column;
  }
  
  .order-box {
    padding: 2.5rem 1.5rem;
  }
  
  .footer-container {
    flex-direction: column;
    text-align: center;
    gap: 2rem;
  }
  
  .footer-right {
    text-align: center;
  }
}

@media (max-width: 480px) {
  .artwork-grid {
    grid-template-columns: 1fr;
  }
  
  .technical-details {
    grid-template-columns: 1fr;
    gap: 1rem;
  }
}
