  :root {
    --cream: #f5f0e8;
    --warm-white: #faf8f4;
    --terracotta: #c4603a;
    --deep-brown: #2a1a0e;
    --olive: #7a6b3e;
    --muted-gold: #b89a5e;
    --dusty-rose: #c48b7a;
    --dark-ink: #1a1208;
    --mid-brown: #5c3d1e;
  }

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

  html { scroll-behavior: smooth; }

  body {
    background-color: var(--cream);
    color: var(--deep-brown);
    font-family: 'Cormorant Garamond', serif;
    overflow-x: hidden;
  }

  /* ─── NOISE TEXTURE OVERLAY ─── */
  body::before {
    content: '';
    position: fixed;
    inset: 0;
    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='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.04'/%3E%3C/svg%3E");
    pointer-events: none;
    z-index: 9999;
    opacity: 0.4;
  }

  /* ─── NAVIGATION ─── */
  nav {
    position: fixed;
    top: 0; left: 0; right: 0;
    z-index: 100;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem 4rem;
    mix-blend-mode: normal;
    transition: background 0.4s ease, padding 0.4s ease;
  }

  nav.scrolled {
    background: rgba(245, 240, 232, 0.95);
    backdrop-filter: blur(10px);
    padding: 1rem 4rem;
    box-shadow: 0 1px 0 rgba(42,26,14,0.1);
  }

  .nav-logo {
    font-family: 'Playfair Display', serif;
    font-size: 1.1rem;
    font-weight: 400;
    letter-spacing: 0.08em;
    color: var(--cream);
    text-decoration: none;
    transition: color 0.3s;
  }

  nav.scrolled .nav-logo { color: var(--deep-brown); }

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

  .nav-links a {
    font-family: 'Josefin Sans', sans-serif;
    font-weight: 400;
    font-size: 0.75rem;
    letter-spacing: 0.25em;
    text-transform: uppercase;
    color: #ffffff;
    text-decoration: none;
    transition: color 0.3s, opacity 0.3s;
    position: relative;
  }

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

  .nav-links a:hover::after { width: 100%; }
  .nav-links a:hover { color: rgba(245,240,232,1); }

  nav.scrolled .nav-links a { color: var(--mid-brown); }
  nav.scrolled .nav-links a:hover { color: var(--terracotta); }

  /* ─── HERO ─── */
  #home {
    min-height: 100vh;
    background: var(--dark-ink);
    display: flex;
    align-items: flex-end;
    position: relative;
    overflow: hidden;
  }

  .hero-bg {
    position: absolute;
    inset: 0;
    background-image: url('https://www.anaraquel-guaricha.com/images-gallery/endanza/image7.webp');
    background-size: cover;
    background-position: center top;
    background-repeat: no-repeat;
    filter: brightness(0.72) saturate(0.9);
    transform: scale(1.03);
    transition: transform 8s ease;
  }

  #home:hover .hero-bg {
    transform: scale(1.06);
  }

  .hero-gradient {
    position: absolute;
    inset: 0;
    background: 
      linear-gradient(to top, rgba(26,18,8,0.85) 0%, rgba(26,18,8,0.3) 50%, rgba(26,18,8,0.15) 100%),
      linear-gradient(to right, rgba(26,18,8,0.4) 0%, transparent 60%);
  }

  .hero-grid {
    display: none;
  }

  .hero-content {
    position: relative;
    z-index: 2;
    padding: 0 4rem 6rem;
    width: 100%;
  }

  .hero-eyebrow {
    font-family: 'Josefin Sans', sans-serif;
    font-weight: 400;
    font-size: 0.75rem;
    letter-spacing: 0.4em;
    text-transform: uppercase;
    color: #e8916b;
    margin-bottom: 1.5rem;
    opacity: 0;
    animation: fadeUp 1s 0.3s forwards;
  }

  .hero-name {
    font-family: 'Playfair Display', serif;
    font-size: clamp(4rem, 10vw, 9rem);
    font-weight: 900;
    line-height: 0.9;
    color: var(--cream);
    margin-bottom: 0.2em;
    opacity: 0;
    animation: fadeUp 1s 0.5s forwards;
  }

  .hero-name em {
    font-style: italic;
    color: var(--terracotta);
    display: block;
  }

  .hero-subtitle {
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.2rem;
    font-style: italic;
    color: rgba(245,240,232,0.9);
    letter-spacing: 0.05em;
    margin-top: 1.5rem;
    opacity: 0;
    animation: fadeUp 1s 0.7s forwards;
  }

  .hero-line {
    position: absolute;
    right: 4rem;
    bottom: 6rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    opacity: 0;
    animation: fadeIn 1s 1.2s forwards;
  }

  .hero-line span {
    font-family: 'Josefin Sans', sans-serif;
    font-weight: 300;
    font-size: 0.6rem;
    letter-spacing: 0.3em;
    text-transform: uppercase;
    color: rgba(245,240,232,0.8);
    writing-mode: vertical-rl;
  }

  .hero-line::after {
    content: '';
    width: 1px;
    height: 80px;
    background: linear-gradient(to bottom, var(--terracotta), transparent);
  }

  /* ─── SECTIONS ─── */
  section { padding: 8rem 4rem; }

  .section-label {
    font-family: 'Josefin Sans', sans-serif;
    font-weight: 200;
    font-size: 0.62rem;
    letter-spacing: 0.35em;
    text-transform: uppercase;
    color: var(--terracotta);
    margin-bottom: 3rem;
    display: flex;
    align-items: center;
    gap: 1.5rem;
  }

  .section-label::after {
    content: '';
    flex: 0 0 50px;
    height: 1px;
    background: var(--terracotta);
  }

  /* ─── BIO ─── */
  #bio {
    background: var(--warm-white);
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 6rem;
    align-items: center;
  }

  .bio-left { }

  .bio-title {
    font-family: 'Playfair Display', serif;
    font-size: clamp(2.5rem, 5vw, 4.5rem);
    font-weight: 400;
    line-height: 1.1;
    color: var(--deep-brown);
    margin-bottom: 2rem;
  }

  .bio-title em {
    font-style: italic;
    color: var(--terracotta);
  }

  .bio-text {
    font-size: 1.15rem;
    line-height: 1.9;
    color: var(--mid-brown);
    font-weight: 300;
    margin-bottom: 1.5rem;
  }

  .bio-right {
    position: relative;
  }

  .bio-decoration {
    width: 100%;
    aspect-ratio: 3/4;
    background: linear-gradient(135deg, var(--terracotta) 0%, var(--dusty-rose) 50%, var(--muted-gold) 100%);
    position: relative;
    overflow: hidden;
  }

  .bio-decoration::before {
    content: 'ANA RAQUEL\A"GUARICHA"';
    white-space: pre;
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: 'Playfair Display', serif;
    font-size: 3.5rem;
    font-weight: 900;
    color: rgba(255,255,255,0.12);
    text-align: center;
    line-height: 1.2;
    padding: 2rem;
  }

  .bio-decoration-inner {
    position: absolute;
    inset: 1.5rem;
    border: 1px solid rgba(255,255,255,0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 1rem;
  }

  .bio-decoration-inner .big-glyph {
    font-family: 'Playfair Display', serif;
    font-size: 8rem;
    font-style: italic;
    color: rgba(255,255,255,0.25);
    line-height: 1;
  }

  .bio-decoration-inner .place {
    font-family: 'Josefin Sans', sans-serif;
    font-weight: 100;
    font-size: 0.65rem;
    letter-spacing: 0.4em;
    text-transform: uppercase;
    color: rgba(255,255,255,0.7);
  }

  /* ─── GALLERY ─── */
  #gallery {
    background: var(--cream);
  }

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

  .gallery-card {
    position: relative;
    overflow: hidden;
    cursor: pointer;
    background: var(--deep-brown);
    aspect-ratio: 1;
  }

  .gallery-card.featured {
    grid-column: span 2;
    grid-row: span 2;
    aspect-ratio: unset;
  }

  .gallery-card-inner {
    width: 100%;
    height: 100%;
    min-height: 220px;
    position: relative;
    overflow: hidden;
  }

  .gallery-placeholder {
    width: 100%;
    height: 100%;
    min-height: 240px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.6s cubic-bezier(0.25,0.46,0.45,0.94);
    position: relative;
    overflow: hidden;
  }

  .gallery-card:hover .gallery-placeholder {
    transform: scale(1.04);
  }

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

  .gallery-overlay {
    position: absolute;
    inset: 0;
    background: rgba(26,18,8,0);
    display: flex;
    align-items: flex-end;
    padding: 1.5rem;
    transition: background 0.4s ease;
  }

  .gallery-card:hover .gallery-overlay {
    background: rgba(26,18,8,0.55);
  }

  .gallery-overlay-text {
    opacity: 0;
    transform: translateY(10px);
    transition: opacity 0.3s ease, transform 0.3s ease;
    color: var(--cream);
  }

  .gallery-card:hover .gallery-overlay-text {
    opacity: 1;
    transform: translateY(0);
  }

  .gallery-overlay-text h3 {
    font-family: 'Playfair Display', serif;
    font-size: 1.3rem;
    font-weight: 400;
    margin-bottom: 0.25rem;
  }

  .gallery-overlay-text p {
    font-family: 'Josefin Sans', sans-serif;
    font-weight: 200;
    font-size: 0.6rem;
    letter-spacing: 0.25em;
    text-transform: uppercase;
    color: var(--terracotta);
  }

  /* ─── EXHIBITIONS ─── */
  #exhibitions {
    background: var(--dark-ink);
    color: var(--cream);
  }

  #exhibitions .section-label { color: var(--muted-gold); }
  #exhibitions .section-label::after { background: var(--muted-gold); }

  .exhibitions-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    margin-bottom: 4rem;
  }

  .exhibitions-title {
    font-family: 'Playfair Display', serif;
    font-size: clamp(2rem, 4vw, 3.5rem);
    font-weight: 400;
    font-style: italic;
    color: var(--cream);
  }

  .filter-bar {
    display: flex;
    gap: 0.5rem;
  }

  .filter-btn {
    font-family: 'Josefin Sans', sans-serif;
    font-weight: 200;
    font-size: 0.6rem;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    padding: 0.4rem 1rem;
    border: 1px solid rgba(245,240,232,0.2);
    background: transparent;
    color: rgba(245,240,232,0.5);
    cursor: pointer;
    transition: all 0.25s ease;
  }

  .filter-btn.active, .filter-btn:hover {
    border-color: var(--muted-gold);
    color: var(--muted-gold);
    background: rgba(184,154,94,0.08);
  }

  .cv-list {
    display: flex;
    flex-direction: column;
  }

  .cv-item {
    display: grid;
    grid-template-columns: 100px 1fr 200px;
    align-items: start;
    padding: 1.8rem 0;
    border-bottom: 1px solid rgba(245,240,232,0.07);
    gap: 2rem;
    transition: background 0.2s ease;
    position: relative;
    cursor: default;
  }

  .cv-item::before {
    content: '';
    position: absolute;
    left: -4rem; right: -4rem; top: 0; bottom: 0;
    background: rgba(184,154,94,0.04);
    opacity: 0;
    transition: opacity 0.2s;
  }

  .cv-item:hover::before { opacity: 1; }

  .cv-date {
    display: flex;
    flex-direction: column;
  }

  .cv-month {
    font-family: 'Josefin Sans', sans-serif;
    font-weight: 100;
    font-size: 0.65rem;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--muted-gold);
  }

  .cv-year {
    font-family: 'Playfair Display', serif;
    font-size: 1.8rem;
    font-weight: 400;
    color: rgba(245,240,232,0.15);
    line-height: 1;
    margin-top: 0.2rem;
  }

  .cv-details { }

  .cv-title {
    font-family: 'Playfair Display', serif;
    font-size: 1.1rem;
    font-style: italic;
    color: var(--cream);
    margin-bottom: 0.3rem;
  }

  .cv-venue {
    font-family: 'Cormorant Garamond', serif;
    font-size: 0.95rem;
    color: rgba(245,240,232,0.55);
    font-weight: 300;
  }

  .cv-type {
    display: flex;
    justify-content: flex-end;
    align-items: flex-start;
    padding-top: 0.2rem;
  }

  .cv-badge {
    font-family: 'Josefin Sans', sans-serif;
    font-weight: 200;
    font-size: 0.55rem;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    padding: 0.25rem 0.7rem;
    border: 1px solid;
    white-space: nowrap;
  }

  .badge-solo { color: var(--terracotta); border-color: rgba(196,96,58,0.5); }
  .badge-group { color: rgba(184,154,94,0.8); border-color: rgba(184,154,94,0.3); }
  .badge-juried { color: rgba(196,139,122,0.9); border-color: rgba(196,139,122,0.35); }
  .badge-fair { color: rgba(122,107,62,0.9); border-color: rgba(122,107,62,0.4); }

  /* ─── CONTACT ─── */
  #contact {
    background: var(--warm-white);
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 6rem;
    align-items: center;
  }

  .contact-left {}

  .contact-title {
    font-family: 'Playfair Display', serif;
    font-size: clamp(2rem, 4vw, 3.5rem);
    font-weight: 400;
    line-height: 1.2;
    color: var(--deep-brown);
    margin-bottom: 1.5rem;
  }

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

  .contact-tagline {
    font-size: 1.1rem;
    color: var(--mid-brown);
    line-height: 1.8;
    font-weight: 300;
    margin-bottom: 2.5rem;
  }

  .contact-details {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
  }

  .contact-detail {
    font-family: 'Josefin Sans', sans-serif;
    font-weight: 200;
    font-size: 0.7rem;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--olive);
    display: flex;
    gap: 1rem;
    align-items: center;
  }

  .contact-detail::before {
    content: '—';
    color: var(--terracotta);
  }

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

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

  .form-field label {
    font-family: 'Josefin Sans', sans-serif;
    font-weight: 200;
    font-size: 0.6rem;
    letter-spacing: 0.3em;
    text-transform: uppercase;
    color: var(--mid-brown);
  }

  .form-field input,
  .form-field textarea {
    background: transparent;
    border: none;
    border-bottom: 1px solid rgba(42,26,14,0.2);
    padding: 0.75rem 0;
    font-family: 'Cormorant Garamond', serif;
    font-size: 1rem;
    color: var(--deep-brown);
    outline: none;
    transition: border-color 0.3s;
    resize: none;
  }

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

  .form-field textarea { min-height: 100px; }

  .submit-btn {
    align-self: flex-start;
    background: var(--terracotta);
    color: var(--cream);
    border: none;
    padding: 1rem 3rem;
    font-family: 'Josefin Sans', sans-serif;
    font-weight: 200;
    font-size: 0.65rem;
    letter-spacing: 0.35em;
    text-transform: uppercase;
    cursor: pointer;
    transition: background 0.3s ease, transform 0.2s ease;
  }

  .submit-btn:hover {
    background: var(--mid-brown);
    transform: translateY(-1px);
  }

  /* ─── FOOTER ─── */
  footer {
    background: var(--dark-ink);
    color: rgba(245,240,232,0.4);
    padding: 3rem 4rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-top: 1px solid rgba(245,240,232,0.06);
  }

  .footer-logo {
    font-family: 'Playfair Display', serif;
    font-size: 1.5rem;
    font-style: italic;
    color: var(--cream);
    font-weight: 400;
  }

  .footer-tagline {
    font-family: 'Josefin Sans', sans-serif;
    font-weight: 100;
    font-size: 0.6rem;
    letter-spacing: 0.25em;
    text-transform: uppercase;
  }

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

  .footer-links a {
    font-family: 'Josefin Sans', sans-serif;
    font-weight: 100;
    font-size: 0.6rem;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: rgba(245,240,232,0.3);
    text-decoration: none;
    transition: color 0.3s;
  }

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

  /* ─── GALLERY TABS ─── */
  .gallery-tabs {
    display: flex;
    gap: 0.25rem;
    margin-bottom: 2rem;
    border-bottom: 1px solid rgba(42,26,14,0.12);
    padding-bottom: 0;
  }

  .gtab {
    font-family: 'Josefin Sans', sans-serif;
    font-weight: 200;
    font-size: 0.65rem;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    background: transparent;
    border: none;
    color: var(--mid-brown);
    padding: 0.6rem 1.5rem;
    cursor: pointer;
    position: relative;
    transition: color 0.25s;
  }

  .gtab::after {
    content: '';
    position: absolute;
    bottom: -1px; left: 0; right: 0;
    height: 2px;
    background: var(--terracotta);
    transform: scaleX(0);
    transition: transform 0.25s ease;
  }

  .gtab.active { color: var(--terracotta); }
  .gtab.active::after { transform: scaleX(1); }

  /* ─── LIGHTBOX ─── */
  .lightbox {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(26,18,8,0.93);
    z-index: 1000;
    align-items: center;
    justify-content: center;
  }

  .lightbox.open { display: flex; }

  .lb-inner {
    max-width: 80vw;
    max-height: 90vh;
    display: flex;
    flex-direction: column;
    align-items: center;
  }

  .lb-inner img {
    max-width: 100%;
    max-height: 75vh;
    object-fit: contain;
    display: block;
  }

  .lb-caption {
    margin-top: 1.5rem;
    text-align: center;
    color: var(--cream);
  }

  .lb-caption h3 {
    font-family: 'Playfair Display', serif;
    font-size: 1.3rem;
    font-style: italic;
    margin-bottom: 0.3rem;
  }

  .lb-caption p {
    font-family: 'Josefin Sans', sans-serif;
    font-weight: 100;
    font-size: 0.6rem;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: rgba(245,240,232,0.45);
    margin-top: 0.2rem;
  }

  .lb-close, .lb-prev, .lb-next {
    position: absolute;
    background: transparent;
    border: none;
    color: rgba(245,240,232,0.6);
    font-size: 2rem;
    cursor: pointer;
    transition: color 0.2s;
    padding: 0.5rem;
  }

  .lb-close { top: 2rem; right: 2rem; font-size: 1.2rem; }
  .lb-prev { left: 1.5rem; font-size: 3rem; }
  .lb-next { right: 1.5rem; font-size: 3rem; }
  .lb-close:hover, .lb-prev:hover, .lb-next:hover { color: var(--terracotta); }
  @keyframes fadeUp {
    from { opacity: 0; transform: translateY(30px); }
    to { opacity: 1; transform: translateY(0); }
  }

  @keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
  }

  .reveal {
    opacity: 0;
    transform: translateY(25px);
    transition: opacity 0.8s ease, transform 0.8s ease;
  }

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

  /* ─── RESPONSIVE ─── */
  @media (max-width: 768px) {
    nav { padding: 1.2rem 1.5rem; }
    nav.scrolled { padding: 0.8rem 1.5rem; }
    .nav-links { display: none; }
    section { padding: 5rem 1.5rem; }
    #bio, #contact { grid-template-columns: 1fr; gap: 3rem; }
    .hero-content { padding: 0 1.5rem 4rem; }
    .hero-line { display: none; }
    .gallery-grid { grid-template-columns: 1fr 1fr; }
    .gallery-card:first-child { grid-column: span 2; }
    .cv-item { grid-template-columns: 70px 1fr; }
    .cv-type { display: none; }
    footer { flex-direction: column; gap: 1.5rem; text-align: center; }
    .exhibitions-header { flex-direction: column; align-items: flex-start; gap: 1.5rem; }
  }

/* ═════════════════════════════════════════════════════════════
   ADDITIONS FOR THE MULTI-PAGE SITE
   ═════════════════════════════════════════════════════════════ */

/* Inner pages: nav is always in its solid "scrolled" state */
body.subpage nav {
  background: rgba(245, 240, 232, 0.95);
  backdrop-filter: blur(10px);
  padding: 1rem 4rem;
  box-shadow: 0 1px 0 rgba(42,26,14,0.1);
}
body.subpage .nav-logo { color: var(--deep-brown); }
body.subpage .nav-links a { color: var(--mid-brown); }
body.subpage .nav-links a:hover,
body.subpage .nav-links a.current { color: var(--terracotta); }
.nav-links a.current::after { width: 100%; }

.nav-right { display: flex; align-items: center; gap: 2rem; }
.nav-ig { color: #ffffff; display: flex; transition: color 0.3s; }
.nav-ig:hover { color: var(--terracotta); }
nav.scrolled .nav-ig, body.subpage .nav-ig { color: var(--mid-brown); }

/* Mobile menu */
.nav-toggle {
  display: none;
  background: none; border: none; cursor: pointer;
  width: 28px; height: 18px; position: relative;
}
.nav-toggle span, .nav-toggle::before, .nav-toggle::after {
  content: ''; position: absolute; left: 0; right: 0; height: 1px;
  background: var(--cream); transition: transform 0.3s, opacity 0.3s, background 0.3s;
}
.nav-toggle::before { top: 0; }
.nav-toggle span { top: 50%; }
.nav-toggle::after { bottom: 0; }
nav.scrolled .nav-toggle span, nav.scrolled .nav-toggle::before, nav.scrolled .nav-toggle::after,
body.subpage .nav-toggle span, body.subpage .nav-toggle::before, body.subpage .nav-toggle::after,
nav.open .nav-toggle span, nav.open .nav-toggle::before, nav.open .nav-toggle::after { background: var(--deep-brown); }
nav.open .nav-toggle span { opacity: 0; }
nav.open .nav-toggle::before { transform: translateY(8.5px) rotate(45deg); }
nav.open .nav-toggle::after { transform: translateY(-8.5px) rotate(-45deg); }
nav.open { background: var(--cream); }
nav.open .nav-logo { color: var(--deep-brown); }

/* Page header for inner pages */
.page-header {
  background: var(--dark-ink);
  color: var(--cream);
  padding: 11rem 4rem 5rem;
  position: relative;
  overflow: hidden;
}
.page-header-bg {
  position: absolute; inset: 0;
  background-size: cover; background-position: center;
  filter: brightness(0.35) saturate(0.85);
  transform: scale(1.05);
}
.page-header > *:not(.page-header-bg) { position: relative; z-index: 1; }
.page-header .section-label { margin-bottom: 1.5rem; }
.page-title {
  font-family: 'Playfair Display', serif;
  font-size: clamp(2.8rem, 7vw, 6rem);
  font-weight: 400; font-style: italic; line-height: 1;
  color: var(--cream);
  opacity: 0; animation: fadeUp 1s 0.2s forwards;
}
.page-intro {
  font-size: 1.2rem; font-style: italic; font-weight: 300;
  color: rgba(245,240,232,0.6);
  max-width: 38rem; margin-top: 1.5rem; line-height: 1.7;
  opacity: 0; animation: fadeUp 1s 0.4s forwards;
}
.page-count {
  font-family: 'Josefin Sans', sans-serif; font-weight: 200;
  font-size: 0.62rem; letter-spacing: 0.3em; text-transform: uppercase;
  color: var(--muted-gold); margin-top: 2rem;
  opacity: 0; animation: fadeIn 1s 0.6s forwards;
}
.breadcrumb {
  font-family: 'Josefin Sans', sans-serif; font-weight: 200;
  font-size: 0.62rem; letter-spacing: 0.3em; text-transform: uppercase;
  margin-bottom: 1.5rem;
}
.breadcrumb a { color: var(--terracotta); text-decoration: none; }
.breadcrumb a:hover { color: var(--cream); }
.breadcrumb span { color: rgba(245,240,232,0.35); margin: 0 0.6rem; }

/* Series page gallery: uniform grid, captions below each piece */
.works-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 3rem 2rem;
}
.work { cursor: pointer; }
.work-frame {
  background: var(--deep-brown);
  aspect-ratio: 4 / 5;
  overflow: hidden;
  position: relative;
}
.work-frame img {
  width: 100%; height: 100%; object-fit: cover; display: block;
  transition: transform 0.6s cubic-bezier(0.25,0.46,0.45,0.94), filter 0.4s;
}
.work:hover .work-frame img { transform: scale(1.04); filter: brightness(0.85); }
.work-frame::after {
  content: 'View'; position: absolute; left: 50%; top: 50%;
  transform: translate(-50%, -50%);
  font-family: 'Josefin Sans', sans-serif; font-weight: 200;
  font-size: 0.6rem; letter-spacing: 0.35em; text-transform: uppercase;
  color: var(--cream); border: 1px solid rgba(245,240,232,0.6);
  padding: 0.6rem 1.4rem; opacity: 0; transition: opacity 0.3s;
}
.work:hover .work-frame::after { opacity: 1; }
.work-caption { padding-top: 1rem; }
.work-title {
  font-family: 'Playfair Display', serif; font-size: 1.15rem; font-style: italic;
  color: var(--deep-brown); margin-bottom: 0.3rem;
}
.work-medium { font-size: 0.98rem; color: var(--mid-brown); font-weight: 300; line-height: 1.5; }
.work-dims { font-size: 0.9rem; color: var(--olive); font-weight: 300; margin-top: 0.15rem; }
.work-status {
  display: inline-block; margin-top: 0.6rem;
  font-family: 'Josefin Sans', sans-serif; font-weight: 300;
  font-size: 0.55rem; letter-spacing: 0.25em; text-transform: uppercase;
  padding: 0.25rem 0.7rem; border: 1px solid;
}
.status-sold  { color: var(--dusty-rose); border-color: rgba(196,139,122,0.45); }
.status-price { color: var(--terracotta); border-color: rgba(196,96,58,0.5); }

/* Prev / next series links */
.series-nav {
  display: flex; justify-content: space-between; gap: 2rem;
  border-top: 1px solid rgba(42,26,14,0.12);
  margin-top: 6rem; padding-top: 2.5rem;
}
.series-nav a { text-decoration: none; color: var(--deep-brown); max-width: 45%; }
.series-nav a.next { text-align: right; margin-left: auto; }
.series-nav small {
  display: block; font-family: 'Josefin Sans', sans-serif; font-weight: 200;
  font-size: 0.6rem; letter-spacing: 0.3em; text-transform: uppercase;
  color: var(--terracotta); margin-bottom: 0.4rem;
}
.series-nav strong {
  font-family: 'Playfair Display', serif; font-weight: 400; font-style: italic;
  font-size: 1.4rem; transition: color 0.3s;
}
.series-nav a:hover strong { color: var(--terracotta); }

/* Series cards (Art Work page + home gallery) */
.series-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.5rem;
}
.series-card {
  position: relative; display: block; overflow: hidden;
  aspect-ratio: 3 / 4; background: var(--deep-brown);
  text-decoration: none; color: var(--cream);
}
.series-card img {
  width: 100%; height: 100%; object-fit: cover; display: block;
  filter: brightness(0.7);
  transition: transform 0.8s cubic-bezier(0.25,0.46,0.45,0.94), filter 0.5s;
}
.series-card:hover img { transform: scale(1.05); filter: brightness(0.5); }
.series-card-text {
  position: absolute; left: 0; right: 0; bottom: 0;
  padding: 2rem 1.75rem;
  background: linear-gradient(to top, rgba(26,18,8,0.85), transparent);
}
.series-card-text small {
  font-family: 'Josefin Sans', sans-serif; font-weight: 200;
  font-size: 0.58rem; letter-spacing: 0.3em; text-transform: uppercase;
  color: var(--muted-gold);
}
.series-card-text h3 {
  font-family: 'Playfair Display', serif; font-size: 1.7rem; font-weight: 400;
  font-style: italic; margin-top: 0.4rem; line-height: 1.15;
}
.series-card-text span {
  display: inline-block; margin-top: 1rem;
  font-family: 'Josefin Sans', sans-serif; font-weight: 200;
  font-size: 0.58rem; letter-spacing: 0.3em; text-transform: uppercase;
  color: var(--cream); border-bottom: 1px solid var(--terracotta); padding-bottom: 0.2rem;
}

/* Home gallery: "view full series" link under the tabs grid */
.gallery-more { margin-top: 2.5rem; display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 1rem; }
.text-link {
  font-family: 'Josefin Sans', sans-serif; font-weight: 300;
  font-size: 0.65rem; letter-spacing: 0.3em; text-transform: uppercase;
  color: var(--terracotta); text-decoration: none;
  border-bottom: 1px solid var(--terracotta); padding-bottom: 0.25rem;
  transition: color 0.3s, border-color 0.3s;
}
.text-link:hover { color: var(--deep-brown); border-color: var(--deep-brown); }
.gallery-tabs { flex-wrap: wrap; }

/* Lightbox counter */
.lb-count {
  position: absolute; top: 2.2rem; left: 2rem;
  font-family: 'Josefin Sans', sans-serif; font-weight: 200;
  font-size: 0.6rem; letter-spacing: 0.3em; color: rgba(245,240,232,0.5);
}

/* Form feedback */
.form-note { font-size: 1rem; font-style: italic; color: var(--olive); min-height: 1.4em; }

/* Footer extras */
.footer-ig { color: rgba(245,240,232,0.45); display: inline-flex; transition: color 0.3s; }
.footer-ig:hover { color: var(--muted-gold); }
.footer-right { display: flex; align-items: center; gap: 2rem; }
.footer-logo a { color: inherit; text-decoration: none; }

@media (max-width: 768px) {
  body.subpage nav { padding: 0.8rem 1.5rem; }
  .nav-toggle { display: block; }
  .nav-ig { display: none; }
  .nav-links {
    display: flex; flex-direction: column; gap: 1.6rem;
    position: absolute; top: 100%; left: 0; right: 0;
    background: var(--cream); padding: 2rem 1.5rem 2.5rem;
    box-shadow: 0 8px 20px rgba(42,26,14,0.08);
    opacity: 0; visibility: hidden; transform: translateY(-8px);
    transition: opacity 0.3s, transform 0.3s, visibility 0.3s;
  }
  nav.open .nav-links { opacity: 1; visibility: visible; transform: none; }
  .nav-links a, nav.open .nav-links a { color: var(--mid-brown); font-size: 0.8rem; }
  .page-header { padding: 8rem 1.5rem 3.5rem; }
  .works-grid { grid-template-columns: 1fr 1fr; gap: 2rem 1rem; }
  .work-title { font-size: 1rem; }
  .work-medium { font-size: 0.88rem; }
  .series-nav strong { font-size: 1.1rem; }
  .lb-inner { max-width: 92vw; }
  .lb-prev { left: 0.25rem; } .lb-next { right: 0.25rem; }
  .footer-right { flex-direction: column; gap: 1.2rem; }
  .footer-links { flex-wrap: wrap; justify-content: center; gap: 1.2rem; }
}
@media (max-width: 420px) {
  .works-grid { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
  .reveal, .hero-eyebrow, .hero-name, .hero-subtitle, .hero-line, .page-title, .page-intro, .page-count { opacity: 1; transform: none; }
}

/* Fix: keep home-gallery tiles square regardless of image proportions
   (in v3, tall images stretched cards and left gaps in the grid) */
.gallery-card-inner { position: absolute; inset: 0; min-height: 0; }
.gallery-placeholder { min-height: 0; }
.page-count { color: var(--muted-gold); opacity: 0; }

/* Bio photo — sits inside the decorative frame; hidden automatically if the file is missing */
.bio-photo {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: center 20%;   /* keeps the face in frame; raise/lower % to adjust */
  z-index: 1;
}
.bio-decoration:has(.bio-photo)::before { display: none; }
.bio-decoration:has(.bio-photo) .bio-decoration-inner {
  z-index: 2;
  justify-content: flex-end;
  padding-bottom: 1.5rem;
  background: linear-gradient(to top, rgba(26,18,8,0.55), transparent 35%);
}
.bio-decoration:has(.bio-photo) .big-glyph { display: none; }

/* Brighter hero text: soft shadow so light text reads over the painting */
.hero-eyebrow, .hero-subtitle, .hero-line span,
body:not(.subpage) nav:not(.scrolled):not(.open) .nav-links a,
body:not(.subpage) nav:not(.scrolled):not(.open) .nav-logo {
  text-shadow: 0 1px 8px rgba(0,0,0,0.6);
}
@media (max-width: 768px) {
  body:not(.subpage) nav:not(.scrolled):not(.open) .nav-links a { text-shadow: none; }
}

/* ═════════════════════════════════════════════════════════════
   BRIGHTER TEXT ON DARK BACKGROUNDS
   One place to tune readability. Lower the numbers after "0." to
   make text dimmer again; raise them (max 1) to make it brighter.
   ═════════════════════════════════════════════════════════════ */
:root { --gold-light: #dcc28c; --terracotta-light: #e8916b; }

/* Inner page headers (Art Work + series pages) */
.breadcrumb { font-weight: 400; font-size: 0.68rem; }
.breadcrumb a { color: var(--terracotta-light); }
.breadcrumb span { color: rgba(245,240,232,0.7); }
.page-header .breadcrumb { color: #ffffff; }
.page-intro { color: rgba(245,240,232,0.92); }
.page-count { color: var(--gold-light); font-weight: 400; }
.page-header .breadcrumb, .page-title, .page-intro, .page-count { text-shadow: 0 1px 10px rgba(0,0,0,0.55); }

/* Exhibition history */
#exhibitions .section-label { color: var(--gold-light); font-weight: 400; font-size: 0.7rem; }
#exhibitions .section-label::after { background: var(--gold-light); }
.cv-month { color: var(--gold-light); font-weight: 400; font-size: 0.72rem; }
.cv-year  { color: rgba(245,240,232,0.7); }
.cv-venue { color: rgba(245,240,232,0.82); font-size: 1rem; }
.cv-item  { border-bottom-color: rgba(245,240,232,0.14); }
.filter-btn { color: rgba(245,240,232,0.85); border-color: rgba(245,240,232,0.4); font-weight: 400; }
.filter-btn.active, .filter-btn:hover { color: var(--gold-light); border-color: var(--gold-light); }
.badge-group  { color: var(--gold-light); border-color: rgba(220,194,140,0.6); }
.badge-juried { color: #e3ad9c; border-color: rgba(227,173,156,0.6); }
.badge-solo   { color: var(--terracotta-light); border-color: rgba(232,145,107,0.7); }
.badge-fair   { color: #c9b97f; border-color: rgba(201,185,127,0.6); }
.cv-badge { font-weight: 400; }

/* Footer */
footer { color: rgba(245,240,232,0.75); }
.footer-tagline { font-weight: 300; }
.footer-links a { color: rgba(245,240,232,0.75); font-weight: 300; }
.footer-ig { color: rgba(245,240,232,0.75); }

/* Text over artwork: series cards, home gallery hover, lightbox */
.series-card-text small { color: var(--gold-light); font-weight: 400; }
.series-card-text span  { font-weight: 400; }
.gallery-overlay-text p { color: var(--terracotta-light); font-weight: 400; }
.lb-caption p { color: rgba(245,240,232,0.8); font-weight: 300; }
.lb-count { color: rgba(245,240,232,0.8); font-weight: 300; }

/* ═════════════════════════════════════════════════════════════
   LOGO (images/AnaRaquel_Logo_Final_White.png)
   Change the widths below to make it bigger or smaller.
   ═════════════════════════════════════════════════════════════ */
.nav-logo { display: flex; align-items: center; }
.nav-logo img {
  width: 170px; height: auto; display: block;
  transition: filter 0.3s;
  filter: drop-shadow(0 1px 6px rgba(0,0,0,0.5));
}
/* On the cream menu bar the white logo turns dark brown so it stays visible */
nav.scrolled .nav-logo img,
nav.open .nav-logo img,
body.subpage .nav-logo img {
  filter: brightness(0) saturate(100%) invert(10%) sepia(25%) saturate(1500%) hue-rotate(350deg);
}
.hero-logo {
  width: 200px; height: auto; display: block;
  margin-top: 2rem;
  filter: drop-shadow(0 1px 8px rgba(0,0,0,0.5));
  opacity: 0; animation: fadeUp 1s 0.9s forwards;
}
.footer-logo img { width: 150px; height: auto; display: block; }
@media (max-width: 768px) {
  .nav-logo img { width: 130px; }
  .hero-logo { width: 150px; margin-top: 1.5rem; }
  .footer-logo img { margin: 0 auto; }
}

/* Exhibition list without the Solo / Group / Juried tags */
.cv-item { grid-template-columns: 100px 1fr; }
@media (max-width: 768px) { .cv-item { grid-template-columns: 70px 1fr; } }
