/* ═══════════════════════════════════════════════════════════════════════
   ZURINA VERDAGUER — Taller Habanero Design System
   Arquitecta · Ceramista · Escritora — La Habana, Cuba
   ═══════════════════════════════════════════════════════════════════════ */

@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:ital,wght@0,400;0,600;0,900;1,400;1,600&family=Josefin+Sans:wght@200;300;400;600&family=Cormorant+Garamond:ital,wght@0,400;0,500;0,600;1,400;1,500&display=swap');

/* ─── TOKENS ───────────────────────────────────────────────────────── */
:root {
  /* Clay Palette — from pale cream to deep fired earth */
  --clay-pale:    #F0DFD0;
  --clay-soft:    #D9B49A;
  --clay-mid:     #B8643C;
  --clay:         #9B4828;
  --clay-deep:    #6B2E1A;
  --clay-dark:    #3D1A0A;

  /* Ochre & Gold */
  --ochre-pale:   #EDD99A;
  --ochre:        #C48520;
  --gold:         #A86C10;

  /* Neutral Warm */
  --cream:        #F9F2E8;
  --parchment:    #F2E6D4;
  --sand:         #E8D5B8;
  --dust:         #D4C0A4;
  --cement:       #B8A898;

  /* Colonial Darks — mahogany and espresso */
  --espresso:     #1E0E05;
  --mahogany:     #2C1810;
  --umber:        #4A3025;
  --bark:         #6B4C38;
  --sienna:       #8B6040;

  /* Tropical accents */
  --foliage:      #3A5C2E;
  --sky:          #7BA8C4;

  /* Text */
  --text:         #1E0E05;
  --text-warm:    #3D2415;
  --text-soft:    #6B4838;
  --text-muted:   #957060;

  /* Functional */
  --border:       rgba(107,46,26,0.12);
  --border-warm:  rgba(107,46,26,0.25);

  /* Typography */
  --font-display: 'Playfair Display', 'Georgia', 'Times New Roman', serif;
  --font-body:    'Cormorant Garamond', 'Palatino Linotype', 'Book Antiqua', Georgia, serif;
  --font-label:   'Josefin Sans', 'Century Gothic', 'Futura', 'Trebuchet MS', sans-serif;

  /* Spacing scale */
  --sp-1:  0.25rem;
  --sp-2:  0.5rem;
  --sp-3:  0.75rem;
  --sp-4:  1rem;
  --sp-5:  1.5rem;
  --sp-6:  2rem;
  --sp-8:  3rem;
  --sp-10: 4rem;
  --sp-12: 5rem;
  --sp-16: 7rem;

  /* Shadows */
  --shadow-sm:   0 2px 8px  rgba(30, 14, 5, 0.10);
  --shadow-md:   0 8px 28px rgba(30, 14, 5, 0.15);
  --shadow-lg:   0 20px 60px rgba(30, 14, 5, 0.22);
  --shadow-clay: 0 6px 24px rgba(107, 46, 26, 0.28);

  /* Transitions */
  --ease:       cubic-bezier(0.25, 0.46, 0.45, 0.94);
  --ease-out:   cubic-bezier(0.16, 1, 0.3, 1);
  --t:          0.38s var(--ease);

  /* Nav */
  --nav-h: 4.5rem;
}

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

html {
  scroll-behavior: smooth;
  font-size: 17px;
  -webkit-text-size-adjust: 100%;
}

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

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

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

ul { list-style: none; }
button { cursor: pointer; font-family: inherit; }

/* ─── TYPOGRAPHY ───────────────────────────────────────────────────── */
h1, h2, h3, h4, h5 {
  font-family: var(--font-display);
  line-height: 1.15;
  color: var(--text);
  font-weight: 400;
}

h1 { font-size: clamp(2.8rem, 6vw, 5.5rem); letter-spacing: -0.01em; }
h2 { font-size: clamp(2rem,  4vw, 3.8rem);  letter-spacing: -0.01em; }
h3 { font-size: clamp(1.5rem, 2.5vw, 2.2rem); }
h4 { font-size: clamp(1.15rem, 1.8vw, 1.5rem); }
h5 { font-size: 1rem; font-family: var(--font-label); font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; }

p {
  font-size: clamp(1rem, 1.3vw, 1.1rem);
  line-height: 1.85;
  color: var(--text-soft);
}

em { font-style: italic; }
strong { font-weight: 600; color: var(--text-warm); }

blockquote {
  font-family: var(--font-display);
  font-size: clamp(1.3rem, 2.2vw, 1.8rem);
  font-style: italic;
  color: var(--clay);
  line-height: 1.5;
  padding-left: var(--sp-6);
  border-left: 3px solid var(--clay-soft);
}

/* Label utility — small caps architectural label */
.lbl {
  display: inline-block;
  font-family: var(--font-label);
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  color: var(--clay);
}

/* Decorative rule / divider */
.rule {
  width: 48px;
  height: 2px;
  background: var(--clay);
  margin: var(--sp-5) 0;
  border-radius: 2px;
}
.rule-center { margin-left: auto; margin-right: auto; }
.rule-gold { background: var(--ochre); }
.rule-pale { background: var(--clay-soft); }

/* ─── OFFLINE INDICATOR ────────────────────────────────────────────── */
#offline-banner {
  display: none;
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 9999;
  background: var(--clay-deep);
  color: var(--clay-pale);
  text-align: center;
  padding: var(--sp-2) var(--sp-4);
  font-family: var(--font-label);
  font-size: 0.72rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}
#offline-banner.visible { display: block; }
body.offline-active { padding-top: 2.5rem; }
body.offline-active .nav { top: 2.5rem; }

/* ─── NAVIGATION ───────────────────────────────────────────────────── */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 500;
  height: var(--nav-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 var(--sp-12);
  background: rgba(249, 242, 232, 0.96);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border-warm);
  transition: background var(--t), box-shadow var(--t);
}

.nav.scrolled {
  background: rgba(249, 242, 232, 0.99);
  box-shadow: var(--shadow-sm);
}

/* Logo */
.nav-logo {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
}
.nav-logo-main {
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--text);
  letter-spacing: 0.04em;
}
.nav-logo-sub {
  font-family: var(--font-label);
  font-size: 0.6rem;
  font-weight: 300;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--clay);
}

/* Links */
.nav-links {
  display: flex;
  gap: var(--sp-6);
  align-items: center;
}

.nav-links a {
  font-family: var(--font-label);
  font-size: 0.72rem;
  font-weight: 400;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--text-soft);
  transition: color var(--t);
  position: relative;
  padding-bottom: 2px;
}
.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -1px; left: 0;
  width: 0; height: 1px;
  background: var(--clay);
  transition: width 0.3s var(--ease-out);
}
.nav-links a:hover,
.nav-links a.active { color: var(--clay); }
.nav-links a:hover::after,
.nav-links a.active::after { width: 100%; }

/* Mobile burger */
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 4px;
  background: none;
  border: none;
  z-index: 501;
}
.nav-toggle span {
  display: block;
  width: 22px; height: 1.5px;
  background: var(--text);
  transition: all 0.3s var(--ease-out);
  transform-origin: center;
}
.nav-toggle.open span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.nav-toggle.open span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

/* ─── BUTTONS ───────────────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-2);
  padding: 0.9rem 2.2rem;
  font-family: var(--font-label);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  border: 1.5px solid transparent;
  transition: all var(--t);
  position: relative;
  overflow: hidden;
}

.btn-primary {
  background: var(--clay);
  border-color: var(--clay);
  color: var(--cream);
}
.btn-primary:hover {
  background: var(--clay-deep);
  border-color: var(--clay-deep);
  transform: translateY(-1px);
  box-shadow: var(--shadow-clay);
}

.btn-outline {
  background: transparent;
  border-color: var(--clay);
  color: var(--clay);
}
.btn-outline:hover {
  background: var(--clay);
  color: var(--cream);
  transform: translateY(-1px);
}

.btn-outline-light {
  background: transparent;
  border-color: rgba(240,223,208,0.5);
  color: var(--clay-pale);
}
.btn-outline-light:hover {
  background: rgba(240,223,208,0.15);
  border-color: var(--clay-pale);
  color: var(--cream);
}

.btn-ghost {
  background: transparent;
  border-color: transparent;
  color: var(--clay);
  padding-left: 0;
}
.btn-ghost::after {
  content: '→';
  transition: transform var(--t);
}
.btn-ghost:hover { color: var(--clay-deep); }
.btn-ghost:hover::after { transform: translateX(4px); }

/* ─── HERO — HOME ───────────────────────────────────────────────────── */
.hero-home {
  padding-top: var(--nav-h);
  min-height: 100vh;
  display: grid;
  grid-template-columns: 1fr 1fr;
  background: var(--parchment);
  overflow: hidden;
  position: relative;
}

/* Decorative arch pattern (background pseudo-element) */
.hero-home::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 70% 80% at 75% 60%, rgba(155,72,40,0.06) 0%, transparent 70%),
    radial-gradient(ellipse 40% 50% at 20% 30%, rgba(196,133,32,0.05) 0%, transparent 60%);
  pointer-events: none;
}

.hero-left {
  padding: var(--sp-16) var(--sp-8) var(--sp-16) var(--sp-12);
  display: flex;
  flex-direction: column;
  justify-content: center;
  position: relative;
  z-index: 1;
}

.hero-left .lbl { margin-bottom: var(--sp-5); }

.hero-left h1 {
  margin-bottom: var(--sp-5);
  line-height: 1.05;
}
.hero-left h1 em {
  font-style: italic;
  color: var(--clay);
  display: block;
}

.hero-desc {
  font-size: clamp(1.05rem, 1.5vw, 1.2rem);
  color: var(--text-soft);
  max-width: 440px;
  margin-bottom: var(--sp-8);
  font-family: var(--font-body);
}

.hero-actions {
  display: flex;
  gap: var(--sp-4);
  flex-wrap: wrap;
}

/* Architect tag */
.hero-arch-tag {
  margin-top: var(--sp-10);
  display: flex;
  align-items: center;
  gap: var(--sp-4);
  font-family: var(--font-label);
  font-size: 0.65rem;
  font-weight: 300;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--text-muted);
}
.hero-arch-tag::before {
  content: '';
  width: 32px; height: 1px;
  background: var(--dust);
}

/* Right side — ceramic images composition */
.hero-right {
  position: relative;
  overflow: hidden;
}

.hero-img-a {
  position: absolute;
  top: 0; left: 0;
  width: 70%; height: 68%;
  object-fit: cover;
}

.hero-img-b {
  position: absolute;
  bottom: 4%; right: 0;
  width: 58%; height: 56%;
  object-fit: cover;
  box-shadow: -6px 0 0 0 var(--parchment), 0 -6px 0 0 var(--parchment);
  outline: 6px solid var(--parchment);
}

.hero-badge {
  position: absolute;
  bottom: 22%; left: 8%;
  background: var(--clay);
  color: var(--cream);
  padding: var(--sp-5) var(--sp-5);
  text-align: center;
  z-index: 10;
  box-shadow: var(--shadow-clay);
}
.hero-badge strong {
  display: block;
  font-family: var(--font-display);
  font-size: 2.5rem;
  font-weight: 400;
  line-height: 1;
}
.hero-badge span {
  display: block;
  font-family: var(--font-label);
  font-size: 0.58rem;
  font-weight: 300;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  margin-top: var(--sp-1);
  opacity: 0.85;
}

/* Havana decorative pattern overlay on right */
.hero-right::after {
  content: '';
  position: absolute;
  top: 0; right: 0;
  width: 100%; height: 100%;
  background: linear-gradient(
    135deg,
    transparent 60%,
    rgba(30,14,5,0.06) 100%
  );
  pointer-events: none;
  z-index: 5;
}

/* ─── PAGE HEADER (interior pages) ─────────────────────────────────── */
.page-header {
  padding-top: var(--nav-h);
  background: var(--parchment);
  position: relative;
  overflow: hidden;
}
.page-header-inner {
  padding: var(--sp-12) var(--sp-12) var(--sp-10);
  max-width: 1400px;
  margin: 0 auto;
  position: relative;
  z-index: 1;
}
.page-header .lbl { margin-bottom: var(--sp-4); }
.page-header h1 { margin-bottom: var(--sp-4); }
.page-header .lead {
  font-family: var(--font-display);
  font-style: italic;
  font-size: clamp(1.1rem, 1.8vw, 1.4rem);
  color: var(--text-soft);
  max-width: 580px;
  line-height: 1.6;
}

/* Arch decoration in page header background */
.page-header::after {
  content: '';
  position: absolute;
  right: -80px; bottom: -120px;
  width: 500px; height: 500px;
  border-radius: 50%;
  border: 1px solid rgba(107,46,26,0.08);
  pointer-events: none;
}
.page-header::before {
  content: '';
  position: absolute;
  right: 30px; bottom: -40px;
  width: 300px; height: 300px;
  border-radius: 50%;
  border: 1px solid rgba(107,46,26,0.06);
  pointer-events: none;
}

/* ─── SECTIONS ──────────────────────────────────────────────────────── */
.section {
  padding: var(--sp-16) var(--sp-12);
}
.section-sm { padding: var(--sp-10) var(--sp-12); }
.section-lg { padding: 9rem var(--sp-12); }

.section-cream   { background: var(--cream); }
.section-parch   { background: var(--parchment); }
.section-sand    { background: var(--sand); }
.section-warm    { background: #EDE3D5; }
.section-dark    {
  background: var(--mahogany);
  color: var(--clay-pale);
}
.section-dark h1,
.section-dark h2,
.section-dark h3,
.section-dark h4 { color: var(--cream); }
.section-dark p  { color: rgba(240,223,208,0.82); }
.section-dark .lbl { color: var(--clay-soft); }
.section-dark .rule { background: var(--clay-soft); }

.section-clay {
  background: var(--clay);
  color: var(--cream);
}
.section-clay h2, .section-clay h3 { color: var(--cream); }
.section-clay p  { color: rgba(249,242,232,0.88); }
.section-clay .lbl { color: var(--ochre-pale); }
.section-clay .rule { background: rgba(249,242,232,0.35); }

.section-max { max-width: 1400px; margin: 0 auto; }

.section-header  { margin-bottom: var(--sp-10); }
.section-header .lbl { margin-bottom: var(--sp-3); }
.section-header h2 { margin-bottom: var(--sp-3); }
.section-header .lead { max-width: 580px; font-style: italic; font-size: 1.1rem; }

.text-center { text-align: center; }
.text-center .rule { margin-left: auto; margin-right: auto; }
.text-center .lead { margin: 0 auto; }

/* ─── SERIES CARDS (3-grid) ─────────────────────────────────────────── */
.series-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--sp-5);
}

.series-card {
  background: var(--cream);
  overflow: hidden;
  transition: transform var(--t), box-shadow var(--t);
  border: 1px solid var(--border);
}

.series-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-lg);
}

.series-card-img {
  width: 100%;
  aspect-ratio: 4/3;
  object-fit: cover;
  transition: transform 0.7s var(--ease-out);
}
.series-card:hover .series-card-img { transform: scale(1.05); }

.series-card-body {
  padding: var(--sp-6) var(--sp-6) var(--sp-5);
}
.series-card-body .lbl { margin-bottom: var(--sp-3); }
.series-card-body h3 { margin-bottom: var(--sp-3); }
.series-card-body p { font-size: 0.98rem; margin-bottom: var(--sp-5); }

.series-card-link {
  font-family: var(--font-label);
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--clay);
  display: inline-flex;
  align-items: center;
  gap: var(--sp-2);
  transition: gap var(--t), color var(--t);
}
.series-card-link::after { content: '→'; }
.series-card:hover .series-card-link { gap: var(--sp-4); color: var(--clay-deep); }

/* ─── GALLERY GRID ──────────────────────────────────────────────────── */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 12px;
}

.gallery-grid-lg {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
  gap: 14px;
}

.gallery-grid-4 {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
}

.gallery-item {
  position: relative;
  overflow: hidden;
  background: var(--sand);
  aspect-ratio: 4/3;
  cursor: zoom-in;
}

.gallery-item::before {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--sand);
  z-index: 0;
  transition: opacity 0.6s ease;
}
.gallery-item.img-loaded::before { opacity: 0; pointer-events: none; }

.gallery-item img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 0.7s var(--ease-out), opacity 0.5s ease;
  opacity: 0;
  position: relative;
  z-index: 1;
}
.gallery-item img.loaded { opacity: 1; }
.gallery-item:hover img { transform: scale(1.07); }

.gallery-item-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to top,
    rgba(30,14,5,0.80) 0%,
    rgba(30,14,5,0.15) 50%,
    transparent 100%
  );
  opacity: 0;
  transition: opacity var(--t);
  display: flex;
  align-items: flex-end;
  padding: var(--sp-4) var(--sp-5);
  z-index: 2;
}
.gallery-item:hover .gallery-item-overlay { opacity: 1; }

.gallery-item-label {
  font-family: var(--font-label);
  font-size: 0.65rem;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--clay-pale);
}

/* Gallery zoom icon */
.gallery-item-overlay::after {
  content: '↗';
  position: absolute;
  top: var(--sp-4); right: var(--sp-4);
  font-size: 1.1rem;
  color: rgba(240,223,208,0.7);
  transition: transform var(--t);
}
.gallery-item:hover .gallery-item-overlay::after { transform: translate(2px,-2px); }

/* ─── LIGHTBOX ──────────────────────────────────────────────────────── */
.lightbox {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 800;
  background: rgba(20,8,2,0.97);
  align-items: center;
  justify-content: center;
  padding: var(--sp-8);
  animation: lb-in 0.3s var(--ease-out);
}
@keyframes lb-in {
  from { opacity: 0; }
  to   { opacity: 1; }
}
.lightbox.open { display: flex; }

.lightbox img {
  max-height: 88vh;
  max-width: 90vw;
  object-fit: contain;
  animation: lb-scale-in 0.35s var(--ease-out);
}
@keyframes lb-scale-in {
  from { transform: scale(0.95); opacity: 0; }
  to   { transform: scale(1); opacity: 1; }
}

.lightbox-close {
  position: absolute;
  top: var(--sp-5); right: var(--sp-6);
  font-size: 1.5rem;
  color: var(--clay-soft);
  background: none;
  border: none;
  line-height: 1;
  transition: color var(--t), transform var(--t);
  font-family: var(--font-label);
}
.lightbox-close:hover { color: var(--cream); transform: rotate(90deg); }

/* ─── ABOUT STRIP (homepage) ────────────────────────────────────────── */
.about-strip {
  background: var(--clay);
  padding: var(--sp-16) var(--sp-12);
  display: grid;
  grid-template-columns: 1fr 2.2fr;
  gap: var(--sp-12);
  align-items: center;
  position: relative;
  overflow: hidden;
}

/* Architectural circle decoration */
.about-strip::before {
  content: '';
  position: absolute;
  right: -100px; top: -100px;
  width: 500px; height: 500px;
  border-radius: 50%;
  border: 1px solid rgba(240,223,208,0.08);
  pointer-events: none;
}
.about-strip::after {
  content: '';
  position: absolute;
  right: 80px; top: 60px;
  width: 280px; height: 280px;
  border-radius: 50%;
  border: 1px solid rgba(240,223,208,0.05);
  pointer-events: none;
}

.about-strip h2 { color: var(--cream); }
.about-strip p  { color: rgba(249,242,232,0.85); }
.about-strip .rule { background: rgba(249,242,232,0.3); }
.about-strip-actions { display: flex; gap: var(--sp-4); flex-wrap: wrap; margin-top: var(--sp-6); }

/* ─── BIOGRAPHY LAYOUT ──────────────────────────────────────────────── */
.bio-layout {
  display: grid;
  grid-template-columns: 1fr 1.9fr;
  gap: var(--sp-12);
  align-items: start;
}

.bio-portrait { position: sticky; top: calc(var(--nav-h) + 2rem); }

.bio-portrait-img {
  width: 100%;
  aspect-ratio: 3/4;
  object-fit: cover;
  border: 3px solid var(--border-warm);
}

.bio-portrait-caption {
  padding-top: var(--sp-4);
  border-top: 1px solid var(--border);
  margin-top: var(--sp-4);
}
.bio-portrait-caption .lbl { display: block; margin-bottom: var(--sp-1); }
.bio-portrait-caption p {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 0.92rem;
  color: var(--text-muted);
  line-height: 1.5;
}

.bio-text .lbl { margin-bottom: var(--sp-3); }
.bio-text h2   { margin-bottom: var(--sp-4); }
.bio-text h2 em { color: var(--clay); }
.bio-text p    { margin-bottom: var(--sp-5); }

.expo-block {
  margin-top: var(--sp-8);
  padding-top: var(--sp-6);
  border-top: 1.5px solid var(--border-warm);
}
.expo-block .lbl { margin-bottom: var(--sp-3); }
.expo-block h3 { color: var(--clay); margin-bottom: var(--sp-5); font-size: 1.6rem; }

.expo-list { list-style: none; }
.expo-list li {
  display: flex;
  gap: var(--sp-4);
  padding: var(--sp-3) 0;
  border-bottom: 1px solid var(--border);
  font-size: 1rem;
  color: var(--text-soft);
  line-height: 1.65;
}
.expo-list li::before {
  content: '—';
  color: var(--clay-soft);
  flex-shrink: 0;
  font-weight: 600;
  padding-top: 2px;
}

/* ─── EVENTS / TIMELINE ─────────────────────────────────────────────── */
.events-cols {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: var(--sp-10) var(--sp-8);
}

.event-group { }
.event-group-title {
  font-family: var(--font-label);
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--clay);
  padding-bottom: var(--sp-4);
  border-bottom: 1.5px solid var(--border-warm);
  margin-bottom: var(--sp-5);
}

.event-item {
  display: grid;
  grid-template-columns: 56px 1fr;
  gap: var(--sp-4);
  padding: var(--sp-3) 0;
  border-bottom: 1px solid var(--border);
}
.event-year {
  font-family: var(--font-label);
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--clay);
  letter-spacing: 0.08em;
  padding-top: 3px;
}
.event-desc {
  font-size: 0.98rem;
  line-height: 1.65;
  color: var(--text-soft);
}

/* ─── BOOK PAGE ─────────────────────────────────────────────────────── */
.book-layout {
  display: grid;
  grid-template-columns: 1fr 1.6fr;
  gap: var(--sp-12);
  align-items: start;
}

.book-cover {
  width: 100%;
  aspect-ratio: 2/3;
  background:
    linear-gradient(160deg, var(--sand) 0%, var(--clay-soft) 40%, var(--clay-mid) 100%);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: var(--sp-8);
  text-align: center;
  position: relative;
  overflow: hidden;
  border: 2px solid var(--border-warm);
}
.book-cover::before {
  content: '';
  position: absolute;
  inset: 12px;
  border: 1px solid rgba(30,14,5,0.12);
  pointer-events: none;
}
.book-cover-title {
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 2.5vw, 2rem);
  font-weight: 900;
  font-style: italic;
  color: var(--espresso);
  line-height: 1.15;
  margin-bottom: var(--sp-4);
}
.book-cover-subtitle {
  font-family: var(--font-label);
  font-size: 0.62rem;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--clay-deep);
  opacity: 0.7;
}

.book-info .lbl { margin-bottom: var(--sp-4); }
.book-info h1   { margin-bottom: var(--sp-3); }
.book-info .book-sub {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 1.3rem;
  color: var(--clay);
  margin-bottom: var(--sp-6);
  line-height: 1.5;
}
.book-info p { margin-bottom: var(--sp-5); }

/* ─── CONTACT ───────────────────────────────────────────────────────── */
.contact-layout {
  display: grid;
  grid-template-columns: 1fr 1.6fr;
  gap: var(--sp-12);
}

.contact-info .lbl { margin-bottom: var(--sp-4); }
.contact-info h2   { margin-bottom: var(--sp-5); }

.contact-detail {
  padding: var(--sp-5) 0;
  border-bottom: 1px solid var(--border);
}
.contact-detail:first-child { padding-top: 0; }
.contact-detail .lbl { margin-bottom: var(--sp-2); }
.contact-detail p { font-size: 1rem; }
.contact-detail a { color: var(--clay); transition: color var(--t); }
.contact-detail a:hover { color: var(--clay-deep); }

/* Form */
.form-group { margin-bottom: var(--sp-5); }

.form-label {
  display: block;
  font-family: var(--font-label);
  font-size: 0.65rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: var(--sp-2);
}

.form-input,
.form-textarea {
  width: 100%;
  background: var(--cream);
  border: 1.5px solid var(--border-warm);
  color: var(--text);
  padding: 0.85rem 1.1rem;
  font-family: var(--font-body);
  font-size: 1rem;
  outline: none;
  transition: border-color var(--t), box-shadow var(--t);
  -webkit-appearance: none;
  border-radius: 0;
}
.form-input:focus,
.form-textarea:focus {
  border-color: var(--clay);
  box-shadow: 0 0 0 3px rgba(155,72,40,0.08);
}
.form-textarea  { height: 160px; resize: vertical; }
.form-input::placeholder,
.form-textarea::placeholder { color: var(--dust); font-style: italic; }

.form-notice {
  margin-top: var(--sp-4);
  padding: var(--sp-4) var(--sp-5);
  background: rgba(155,72,40,0.06);
  border-left: 3px solid var(--clay-soft);
  font-size: 0.9rem;
  color: var(--text-soft);
  display: none;
}
.form-notice.visible { display: block; }

/* ─── LINKS / RELATED ───────────────────────────────────────────────── */
.links-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(310px, 1fr));
  gap: var(--sp-5);
}

.link-card {
  background: var(--cream);
  border: 1px solid var(--border);
  overflow: hidden;
  transition: transform var(--t), box-shadow var(--t);
}
.link-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-md);
}
.link-card-img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  filter: saturate(0.75);
  transition: filter 0.5s ease, transform 0.6s var(--ease-out);
}
.link-card:hover .link-card-img {
  filter: saturate(1);
  transform: scale(1.04);
}
.link-card-img-wrap {
  overflow: hidden;
}
.link-card-body {
  padding: var(--sp-5) var(--sp-6) var(--sp-6);
}
.link-card-body .lbl { margin-bottom: var(--sp-3); }
.link-card-body h3   { margin-bottom: var(--sp-3); font-size: 1.3rem; }
.link-card-body p    { font-size: 0.95rem; margin-bottom: var(--sp-5); line-height: 1.7; }
.link-card-body a    {
  font-family: var(--font-label);
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--clay);
  transition: color var(--t);
}
.link-card-body a:hover { color: var(--clay-deep); }

/* ─── GALLERY HUB ───────────────────────────────────────────────────── */
.gallery-hub {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--sp-5);
}

.hub-card {
  position: relative;
  overflow: hidden;
  aspect-ratio: 3/4;
  background: var(--sand);
}
.hub-card img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 0.7s var(--ease-out);
}
.hub-card:hover img { transform: scale(1.06); }

.hub-card-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to top,
    rgba(30,14,5,0.88) 0%,
    rgba(30,14,5,0.2) 50%,
    transparent 100%
  );
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: var(--sp-6);
  transition: background var(--t);
}
.hub-card:hover .hub-card-overlay {
  background: linear-gradient(
    to top,
    rgba(30,14,5,0.94) 0%,
    rgba(30,14,5,0.4) 60%,
    rgba(30,14,5,0.05) 100%
  );
}
.hub-card-overlay .lbl { color: var(--clay-soft); margin-bottom: var(--sp-2); }
.hub-card-overlay h3   { color: var(--cream); margin-bottom: var(--sp-3); }
.hub-card-overlay p    { color: rgba(240,223,208,0.78); font-size: 0.95rem; margin-bottom: var(--sp-4); }
.hub-card-link {
  font-family: var(--font-label);
  font-size: 0.65rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--clay-soft);
  display: inline-flex;
  align-items: center;
  gap: var(--sp-2);
  transition: gap var(--t), color var(--t);
}
.hub-card-link::after { content: '→'; }
.hub-card:hover .hub-card-link { gap: var(--sp-4); color: var(--clay-pale); }

/* ─── HAVANA QUOTE BAND ─────────────────────────────────────────────── */
.quote-band {
  padding: var(--sp-12) var(--sp-12);
  background: var(--espresso);
  text-align: center;
  position: relative;
  overflow: hidden;
}
.quote-band::before {
  content: '"';
  position: absolute;
  top: -0.2em; left: 50%;
  transform: translateX(-50%);
  font-family: var(--font-display);
  font-size: 20rem;
  font-weight: 900;
  color: rgba(155,72,40,0.08);
  line-height: 1;
  pointer-events: none;
}
.quote-band blockquote {
  border: none;
  padding: 0;
  color: var(--clay-pale);
  font-size: clamp(1.4rem, 2.5vw, 2rem);
  max-width: 800px;
  margin: 0 auto var(--sp-5);
  position: relative;
  z-index: 1;
}
.quote-band .attribution {
  font-family: var(--font-label);
  font-size: 0.68rem;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--clay-soft);
  position: relative;
  z-index: 1;
}

/* ─── PROCESS (home 2-col) ──────────────────────────────────────────── */
.process-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--sp-12);
  align-items: center;
}
.process-images {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}
.process-images .gallery-item:last-child { margin-top: var(--sp-6); }
.process-text .lbl   { margin-bottom: var(--sp-4); }
.process-text h2     { margin-bottom: var(--sp-4); }
.process-text h2 em  { color: var(--clay); display: block; }
.process-text p      { margin-bottom: var(--sp-4); }

/* ─── FOOTER WITH HAVANA SKYLINE ────────────────────────────────────── */
.footer-skyline {
  display: block;
  width: 100%;
  height: auto;
  fill: var(--espresso);
  opacity: 0.9;
}

.footer {
  background: var(--espresso);
  padding: var(--sp-12) var(--sp-12) var(--sp-8);
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1fr;
  gap: var(--sp-8);
}

.footer-brand {
  font-family: var(--font-display);
  font-size: 1.8rem;
  font-weight: 400;
  color: var(--cream);
  line-height: 1.15;
  letter-spacing: -0.01em;
  margin-bottom: var(--sp-4);
}
.footer-desc {
  font-size: 0.92rem;
  color: rgba(240,223,208,0.55);
  line-height: 1.7;
  margin-bottom: var(--sp-5);
}

.footer-tagline {
  font-family: var(--font-label);
  font-size: 0.6rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--clay-soft);
  display: flex;
  align-items: center;
  gap: var(--sp-3);
}
.footer-tagline::before {
  content: '';
  width: 24px; height: 1px;
  background: var(--clay-soft);
}

.footer-col h4 {
  font-family: var(--font-label);
  font-size: 0.62rem;
  font-weight: 600;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--clay-soft);
  margin-bottom: var(--sp-5);
}
.footer-col ul { list-style: none; }
.footer-col li { margin-bottom: var(--sp-2); }
.footer-col a {
  font-size: 0.92rem;
  color: rgba(240,223,208,0.55);
  transition: color var(--t);
}
.footer-col a:hover { color: var(--cream); }

.footer-bottom {
  background: var(--espresso);
  border-top: 1px solid rgba(255,255,255,0.06);
  padding: var(--sp-4) var(--sp-12);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: var(--sp-3);
}
.footer-bottom p {
  font-family: var(--font-label);
  font-size: 0.6rem;
  letter-spacing: 0.2em;
  color: rgba(255,255,255,0.25);
  text-transform: uppercase;
}
.footer-bottom a { color: var(--clay-soft); transition: color var(--t); }
.footer-bottom a:hover { color: var(--clay-pale); }

/* ─── SCROLLED NAV STATE ────────────────────────────────────────────── */
/* ─── ANIMATIONS ────────────────────────────────────────────────────── */
.fade-in {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.75s var(--ease-out), transform 0.75s var(--ease-out);
}
.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}
.fade-in:nth-child(2) { transition-delay: 0.10s; }
.fade-in:nth-child(3) { transition-delay: 0.18s; }
.fade-in:nth-child(4) { transition-delay: 0.26s; }
.fade-in:nth-child(5) { transition-delay: 0.34s; }
.fade-in:nth-child(6) { transition-delay: 0.40s; }

/* Stagger utility */
.stagger > * {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.65s var(--ease-out), transform 0.65s var(--ease-out);
}
.stagger.visible > *:nth-child(1) { opacity: 1; transform: translateY(0); transition-delay: 0.05s; }
.stagger.visible > *:nth-child(2) { opacity: 1; transform: translateY(0); transition-delay: 0.15s; }
.stagger.visible > *:nth-child(3) { opacity: 1; transform: translateY(0); transition-delay: 0.25s; }
.stagger.visible > *:nth-child(4) { opacity: 1; transform: translateY(0); transition-delay: 0.35s; }

/* ─── SCROLL INDICATOR ──────────────────────────────────────────────── */
.scroll-hint {
  position: absolute;
  bottom: var(--sp-6);
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--sp-2);
}
.scroll-hint span {
  font-family: var(--font-label);
  font-size: 0.58rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--text-muted);
}
.scroll-hint-arrow {
  width: 1px;
  height: 40px;
  background: linear-gradient(to bottom, var(--clay-soft), transparent);
  animation: scroll-line 1.8s ease infinite;
}
@keyframes scroll-line {
  0%   { transform: scaleY(0); transform-origin: top; opacity: 0; }
  50%  { transform: scaleY(1); transform-origin: top; opacity: 1; }
  100% { transform: scaleY(0); transform-origin: bottom; opacity: 0; }
}

/* ─── AZULEJO DECORATION ────────────────────────────────────────────── */
/* Decorative colonial tile motif used as border/divider */
.azulejo-border {
  height: 6px;
  background: repeating-linear-gradient(
    90deg,
    var(--clay)     0px,
    var(--clay)     6px,
    var(--clay-mid) 6px,
    var(--clay-mid) 12px,
    var(--ochre)    12px,
    var(--ochre)    18px,
    var(--clay-mid) 18px,
    var(--clay-mid) 24px
  );
  opacity: 0.5;
}

/* ─── STATS ROW ─────────────────────────────────────────────────────── */
.stats-row {
  display: flex;
  gap: var(--sp-12);
  flex-wrap: wrap;
}
.stat-item { }
.stat-item strong {
  display: block;
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 4vw, 4rem);
  font-weight: 400;
  color: var(--clay);
  line-height: 1;
  margin-bottom: var(--sp-1);
}
.stat-item span {
  font-family: var(--font-label);
  font-size: 0.65rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--text-muted);
}

/* ─── AWARDS SECTION ────────────────────────────────────────────────── */
.award-item {
  display: flex;
  gap: var(--sp-5);
  padding: var(--sp-5) 0;
  border-bottom: 1px solid var(--border);
  align-items: flex-start;
}
.award-icon {
  font-size: 1.4rem;
  line-height: 1;
  flex-shrink: 0;
  margin-top: 2px;
  color: var(--ochre);
}
.award-text .award-title {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.1rem;
  color: var(--text);
  margin-bottom: var(--sp-1);
}
.award-text p { font-size: 0.95rem; margin: 0; }

/* ─── RESPONSIVE ────────────────────────────────────────────────────── */
@media (max-width: 1200px) {
  .section, .section-sm, .section-lg { padding-left: var(--sp-8); padding-right: var(--sp-8); }
  .hero-left { padding: var(--sp-12) var(--sp-6) var(--sp-12) var(--sp-8); }
  .about-strip { padding: var(--sp-12) var(--sp-8); }
  .footer { padding: var(--sp-8); }
  .footer-bottom { padding: var(--sp-4) var(--sp-8); }
  .page-header-inner { padding: var(--sp-8) var(--sp-8) var(--sp-8); }
  .nav { padding: 0 var(--sp-8); }
}

@media (max-width: 1024px) {
  .hero-home { grid-template-columns: 1fr; }
  .hero-right { display: none; }
  .hero-left { padding: var(--sp-12) var(--sp-6) var(--sp-10); min-height: auto; }

  .bio-layout { grid-template-columns: 1fr; }
  .bio-portrait { position: static; }

  .process-layout { grid-template-columns: 1fr; }
  .about-strip { grid-template-columns: 1fr; gap: var(--sp-6); }
  .book-layout { grid-template-columns: 1fr; }
  .contact-layout { grid-template-columns: 1fr; }
  .footer { grid-template-columns: 1fr 1fr; }
  .gallery-grid-4 { grid-template-columns: 1fr 1fr; }
  .series-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 768px) {
  html { font-size: 16px; }

  .nav { padding: 0 var(--sp-5); }
  .nav-links {
    position: fixed;
    inset: 0;
    background: var(--parchment);
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: var(--sp-6);
    z-index: 499;
    display: none;
    animation: menu-in 0.3s var(--ease-out);
  }
  @keyframes menu-in {
    from { opacity: 0; transform: translateY(-10px); }
    to   { opacity: 1; transform: translateY(0); }
  }
  .nav-links.open { display: flex; }
  .nav-links a { font-size: 0.85rem; letter-spacing: 0.25em; }
  .nav-toggle { display: flex; }

  .section, .section-sm, .section-lg { padding-left: var(--sp-5); padding-right: var(--sp-5); }
  .about-strip { padding: var(--sp-8) var(--sp-5); }
  .footer { grid-template-columns: 1fr; padding: var(--sp-8) var(--sp-5); }
  .footer-bottom { padding: var(--sp-4) var(--sp-5); flex-direction: column; text-align: center; }
  .page-header-inner { padding: var(--sp-8) var(--sp-5) var(--sp-6); }
  .nav { padding: 0 var(--sp-5); }

  .series-grid { grid-template-columns: 1fr; }
  .gallery-grid { grid-template-columns: repeat(2, 1fr); gap: 8px; }
  .gallery-grid-lg { grid-template-columns: repeat(2, 1fr); gap: 8px; }
  .gallery-grid-4 { grid-template-columns: 1fr 1fr; }
  .gallery-hub { grid-template-columns: 1fr; }
  .links-grid { grid-template-columns: 1fr; }
  .events-cols { grid-template-columns: 1fr; }
  .stats-row { gap: var(--sp-6); }
  .quote-band { padding: var(--sp-10) var(--sp-5); }
  .book-cover { max-width: 280px; margin: 0 auto; }
}

@media (max-width: 480px) {
  .gallery-grid { grid-template-columns: 1fr; }
  .gallery-grid-4 { grid-template-columns: 1fr; }
  h1 { font-size: clamp(2.2rem, 8vw, 3rem); }
}
