:root {
  --bg: #0a0a0a;
  --panel: #111111;
  --text: #f1f0eb;
  --muted: #aaa8a1;
  --line: rgba(255,255,255,.16);
  --accent: #b63c32;
  --serif: "Iowan Old Style", Baskerville, "Times New Roman", serif;
  --sans: Inter, "Helvetica Neue", Arial, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; background: var(--bg); }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0,0,0,0); }

.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 84px;
  padding: 18px clamp(20px, 4vw, 64px);
  background: linear-gradient(to bottom, rgba(0,0,0,.78), transparent);
  transition: background .25s ease, border-color .25s ease;
}
.site-header.scrolled {
  background: rgba(10,10,10,.92);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}
.brand { display: inline-flex; flex-direction: column; gap: 1px; }
.brand-main { font-weight: 600; font-size: 19px; letter-spacing: .24em; }
.brand-sub { color: rgba(255,255,255,.66); font-size: 10px; letter-spacing: .12em; text-transform: uppercase; }
.main-nav { display: flex; gap: clamp(18px, 2.6vw, 40px); font-size: 12px; letter-spacing: .09em; text-transform: uppercase; }
.main-nav a { position: relative; }
.main-nav a::after { content: ""; position: absolute; left: 0; right: 100%; bottom: -5px; height: 1px; background: currentColor; transition: right .25s ease; }
.main-nav a:hover::after { right: 0; }
.menu-button { display: none; border: 0; padding: 8px 0; background: transparent; color: var(--text); }
.menu-button span:not(.sr-only) { display: block; width: 24px; height: 1px; margin: 6px 0; background: currentColor; }

.hero { position: relative; min-height: 100svh; display: grid; align-items: end; overflow: hidden; }
.hero-image { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; filter: grayscale(100%); transform: scale(1.01); }
.hero-shade { position: absolute; inset: 0; background: linear-gradient(90deg, rgba(0,0,0,.78) 0%, rgba(0,0,0,.42) 48%, rgba(0,0,0,.22) 100%), linear-gradient(to top, rgba(0,0,0,.45), transparent 60%); }
.hero-content { position: relative; z-index: 2; max-width: 900px; padding: 150px clamp(24px, 7vw, 108px) clamp(70px, 10vh, 120px); }
.eyebrow { margin: 0 0 22px; color: var(--muted); font-size: 11px; font-weight: 600; letter-spacing: .24em; text-transform: uppercase; }
.hero h1, .section-heading h2, .story-copy h2, .milonga-copy h2, .about-copy h2, .contact-section h2 { font-family: var(--serif); font-weight: 500; line-height: .96; letter-spacing: -.035em; }
.hero h1 { margin: 0; font-size: clamp(48px, 7.6vw, 110px); }
.hero-copy { max-width: 620px; margin: 28px 0 32px; color: rgba(255,255,255,.78); font-size: clamp(15px, 1.5vw, 19px); }
.text-link { display: inline-flex; align-items: center; gap: 12px; padding-bottom: 7px; border-bottom: 1px solid rgba(255,255,255,.58); font-size: 12px; letter-spacing: .12em; text-transform: uppercase; }
.text-link:hover { border-color: var(--text); }
.hero-index { position: absolute; right: clamp(24px, 4vw, 64px); bottom: 34px; z-index: 2; color: rgba(255,255,255,.62); font-size: 10px; letter-spacing: .18em; }

.section { padding: clamp(90px, 12vw, 180px) clamp(20px, 5vw, 78px); }
.work-section { background: var(--bg); }
.section-heading { display: flex; align-items: end; justify-content: space-between; gap: 50px; margin-bottom: 70px; }
.section-heading h2 { max-width: 780px; margin: 0; font-size: clamp(44px, 7vw, 88px); }
.section-note { max-width: 330px; margin: 0 0 10px; color: var(--muted); font-size: 14px; }
.filter-bar { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 10px 24px; margin-bottom: 42px; border-bottom: 1px solid var(--line); }
.filter-button { position: relative; border: 0; padding: 0 0 15px; background: transparent; color: var(--muted); cursor: pointer; font-size: 12px; letter-spacing: .08em; text-transform: uppercase; }
.filter-button::after { content: ""; position: absolute; left: 0; right: 100%; bottom: -1px; height: 1px; background: var(--text); transition: right .25s ease; }
.filter-button.active { color: var(--text); }
.filter-button.active::after, .filter-button:hover::after { right: 0; }
.photo-count { margin-left: auto; padding-bottom: 15px; color: rgba(255,255,255,.48); font-size: 11px; letter-spacing: .12em; text-transform: uppercase; }

.gallery { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); grid-auto-flow: dense; gap: clamp(14px, 1.6vw, 26px); }
.gallery-item { position: relative; min-width: 0; cursor: zoom-in; margin: 0; overflow: hidden; background: var(--panel); }
.gallery-item.standard { grid-column: span 4; }
.gallery-item.wide { grid-column: span 8; }
.gallery-item.tall { grid-column: span 4; }
.gallery-item:nth-child(9n+2):not(.wide):not(.tall), .gallery-item:nth-child(9n+7):not(.wide):not(.tall) { grid-column: span 5; }
.gallery-item:nth-child(9n+5):not(.wide):not(.tall) { grid-column: span 3; }
.gallery-item.hidden { display: none; }
.gallery-image-wrap { position: relative; overflow: hidden; background: var(--panel); }
.gallery-item.standard .gallery-image-wrap { aspect-ratio: 4 / 5; }
.gallery-item.wide .gallery-image-wrap { aspect-ratio: 16 / 9; }
.gallery-item.tall .gallery-image-wrap { aspect-ratio: 3 / 4; }
.gallery-image { width: 100%; height: 100%; object-fit: cover; filter: grayscale(100%); transition: filter .45s ease, transform .65s cubic-bezier(.2,.7,.2,1); }
.gallery-item:hover .gallery-image, .gallery-item:focus-visible .gallery-image { filter: grayscale(10%); transform: scale(1.025); }
.gallery-overlay { position: absolute; inset: 0; background: linear-gradient(to top, rgba(0,0,0,.82), rgba(0,0,0,.04) 62%); opacity: 0; transition: opacity .3s ease; }
.gallery-item:hover .gallery-overlay, .gallery-item:focus-visible .gallery-overlay { opacity: 1; }
.gallery-overlay span { position: absolute; right: 16px; top: 16px; padding: 7px 10px; border: 1px solid rgba(255,255,255,.36); border-radius: 999px; background: rgba(0,0,0,.28); color: rgba(255,255,255,.86); font-size: 9px; letter-spacing: .14em; text-transform: uppercase; }
.gallery-caption { position: absolute; left: 0; right: 0; bottom: 0; z-index: 2; display: flex; justify-content: space-between; gap: 18px; padding: 72px 18px 18px; background: linear-gradient(transparent, rgba(0,0,0,.86)); color: rgba(255,255,255,.7); font-size: 11px; letter-spacing: .06em; text-transform: uppercase; opacity: 0; transform: translateY(10px); transition: opacity .28s ease, transform .28s ease; pointer-events: none; }
.gallery-item:hover .gallery-caption, .gallery-item:focus-visible .gallery-caption { opacity: 1; transform: translateY(0); }
.gallery-caption strong { color: var(--text); font-weight: 500; }

.stories-section { padding-top: 30px; }
.story-feature { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(300px, .75fr); gap: clamp(40px, 8vw, 140px); align-items: center; }
.story-photo-wrap { position: relative; }
.story-photo-wrap img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; filter: grayscale(100%); }
.photo-number { position: absolute; left: -20px; bottom: -36px; font-family: var(--serif); font-size: clamp(70px, 11vw, 170px); line-height: 1; color: rgba(255,255,255,.08); }
.story-copy h2 { margin: 0 0 28px; font-size: clamp(48px, 6vw, 84px); }
.story-copy p:not(.eyebrow) { max-width: 560px; color: var(--muted); font-size: 17px; }
.story-copy .text-link { margin-top: 18px; }
.quote-block { max-width: 1050px; margin: clamp(110px, 14vw, 210px) auto 0; text-align: center; }
.quote-block blockquote { margin: 0; font-family: var(--serif); font-style: italic; font-size: clamp(36px, 5.6vw, 72px); line-height: 1.12; letter-spacing: -.025em; }

.milonga-section { border-top: 1px solid var(--line); background: linear-gradient(135deg, #100b0a, #0a0a0a 58%); }
.milonga-grid { display: grid; grid-template-columns: minmax(280px, .8fr) minmax(360px, 1.2fr); align-items: center; gap: clamp(48px, 8vw, 130px); max-width: 1320px; margin: 0 auto; }
.milonga-poster { margin: 0; }
.milonga-poster img { width: min(100%, 540px); margin: 0 auto; box-shadow: 0 32px 90px rgba(0,0,0,.48); }
.milonga-poster figcaption { margin-top: 14px; color: var(--muted); font-size: 10px; letter-spacing: .12em; text-align: center; text-transform: uppercase; }
.milonga-copy h2 { margin: 0 0 20px; font-size: clamp(28px, 3.2vw, 40px); }
.milonga-copy .eyebrow { color: #c77a72; }
.milonga-lead { max-width: 620px; margin: 0 0 34px; color: rgba(255,255,255,.78); font-family: var(--serif); font-size: clamp(23px, 2.2vw, 32px); line-height: 1.25; }
.event-details { margin: 0; }
.event-details div { display: grid; grid-template-columns: 120px 1fr; gap: 24px; padding: 18px 0; }
.event-details dt { color: #c77a72; font-size: 10px; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; }
.event-details dd { margin: 0; font-size: 16px; }
.event-details dd span, .milonga-note span, .milonga-welcome span { color: var(--muted); }
.venue-map-links { display: flex; flex-wrap: wrap; gap: 10px 22px; margin-top: 10px; }
.venue-map-links .map-link { font-size: 11px; padding-bottom: 4px; }
.milonga-note { margin: 28px 0 0; color: rgba(255,255,255,.78); }
.milonga-welcome { margin: 22px 0 0; color: #d6b2ad; font-family: var(--serif); font-size: 21px; }
.milonga-photo-single { margin: clamp(50px, 7vw, 90px) auto 0; max-width: 1000px; }
.milonga-photo-single img { width: 100%; height: auto; display: block; }

.about-section { display: grid; grid-template-columns: .42fr minmax(220px, .72fr) minmax(360px, 1.18fr) .58fr; gap: clamp(30px, 4.8vw, 82px); align-items: start; border-top: 1px solid var(--line); }
.vertical-note { margin-top: 70px; color: rgba(255,255,255,.35); font-size: 10px; letter-spacing: .18em; writing-mode: vertical-rl; }
.about-portrait { margin: 0; }
.about-portrait img { width: min(100%, 330px); aspect-ratio: 2 / 3; object-fit: cover; object-position: center; filter: grayscale(100%); border: 1px solid var(--line); }
.about-copy h2 { margin: 0 0 18px; font-size: clamp(34px, 4.2vw, 58px); letter-spacing: -.018em; }
.about-copy .lead { color: var(--text); font-family: var(--serif); font-size: clamp(18px, 1.7vw, 24px); line-height: 1.35; letter-spacing: .01em; }
.about-copy p { max-width: 640px; color: var(--muted); }
.about-facts { border-top: 1px solid var(--line); }
.about-facts div { display: flex; flex-direction: column; gap: 6px; padding: 20px 0; border-bottom: 1px solid var(--line); }
.about-facts span { color: var(--muted); font-size: 10px; letter-spacing: .13em; text-transform: uppercase; }
.about-facts strong { font-weight: 500; }

.contact-section { padding: clamp(100px, 15vw, 220px) clamp(24px, 7vw, 108px); text-align: center; background: #efeee9; color: #111; }
.contact-section .eyebrow { color: #6e6b65; }
.contact-section h2 { margin: 0; font-size: clamp(56px, 9vw, 132px); }
.contact-section h2 em { font-weight: 500; }
.contact-links { display: flex; justify-content: center; flex-wrap: wrap; gap: 24px 46px; margin-top: 50px; font-size: 13px; letter-spacing: .08em; text-transform: uppercase; }
.contact-links a { border-bottom: 1px solid currentColor; }
.contact-note { max-width: 560px; margin: 28px auto 0; color: #6e6b65; font-size: 14px; letter-spacing: .02em; }
.site-footer { display: flex; justify-content: space-between; gap: 24px; padding: 24px clamp(20px, 4vw, 64px); color: var(--muted); border-top: 1px solid var(--line); font-size: 11px; letter-spacing: .08em; text-transform: uppercase; }

.lightbox { position: fixed; inset: 0; z-index: 200; width: 100vw; height: 100vh; max-width: none; max-height: none; border: 0; padding: 0; background: rgba(0,0,0,.96); color: var(--text); }
.lightbox:not([open]) { display: none; }
.lightbox::backdrop { background: rgba(0,0,0,.96); }
.lightbox[open] { display: grid; grid-template-columns: 80px 1fr 80px; align-items: center; }
.lightbox figure { display: grid; place-items: center; margin: 0; height: 100%; padding: 50px 20px 24px; }
.lightbox img { max-width: min(86vw, 1500px); max-height: 82vh; object-fit: contain; }
.lightbox figcaption { display: flex; justify-content: space-between; width: min(86vw, 1500px); margin-top: 14px; color: var(--muted); font-size: 11px; letter-spacing: .08em; text-transform: uppercase; }
.lightbox button { border: 0; background: transparent; color: var(--text); cursor: pointer; }
.lightbox-close { position: fixed; top: 18px; right: 24px; z-index: 3; font-size: 34px; font-weight: 200; }
.lightbox-nav { height: 100%; font-size: 26px; }

@media (max-width: 1120px) {
  .gallery { grid-template-columns: repeat(6, minmax(0, 1fr)); }
  .gallery-item.standard, .gallery-item.wide, .gallery-item.tall, .gallery-item:nth-child(9n+2):not(.wide):not(.tall), .gallery-item:nth-child(9n+7):not(.wide):not(.tall), .gallery-item:nth-child(9n+5):not(.wide):not(.tall) { grid-column: span 3; }
  .gallery-item.wide { grid-column: span 6; }
}

@media (max-width: 980px) {
  .menu-button { display: block; z-index: 22; }
  .main-nav { position: fixed; inset: 0; z-index: 21; display: none; flex-direction: column; justify-content: center; align-items: center; gap: 30px; background: rgba(10,10,10,.98); font-family: var(--serif); font-size: 34px; text-transform: none; }
  .main-nav.open { display: flex; }
  .story-feature { grid-template-columns: 1fr; }
  .story-copy { max-width: 680px; }
  .milonga-grid { grid-template-columns: 1fr; }
  .milonga-poster { max-width: 560px; }
  .about-section { grid-template-columns: .65fr 1.35fr; }
  .about-label { grid-column: 1; }
  .about-portrait { grid-column: 1; }
  .about-copy { grid-column: 2; grid-row: 1 / span 2; }
  .about-facts { grid-column: 2; }
}

@media (max-width: 700px) {
  .site-header { min-height: 72px; }
  .brand-sub { display: none; }
  .hero-content { padding-left: 22px; padding-right: 22px; }
  .hero-copy { max-width: 92%; }
  .hero-index { display: none; }
  .section { padding-left: 18px; padding-right: 18px; }
  .section-heading { display: block; margin-bottom: 44px; }
  .section-note { margin-top: 24px; }
  .filter-bar { gap: 10px 18px; }
  .photo-count { width: 100%; margin-left: 0; padding-top: 4px; }
  .gallery { grid-template-columns: 1fr; gap: 14px; }
  .gallery-item, .gallery-item.standard, .gallery-item.wide, .gallery-item.tall { grid-column: span 1; }
  .gallery-item.standard .gallery-image-wrap, .gallery-item.wide .gallery-image-wrap { aspect-ratio: 3 / 2; }
  .gallery-item.tall .gallery-image-wrap { aspect-ratio: 3 / 4; }
  .gallery-overlay, .gallery-caption { opacity: 1; transform: none; }
  .story-photo-wrap img { aspect-ratio: 4 / 5; }
  .event-details div { grid-template-columns: 86px 1fr; gap: 14px; }
  .about-section { grid-template-columns: 1fr; }
  .about-label, .about-portrait, .about-copy, .about-facts { grid-column: 1; grid-row: auto; }
  .about-portrait img { width: min(100%, 360px); }
  .vertical-note { display: none; }
  .contact-links { flex-direction: column; }
  .site-footer { flex-direction: column; }
  .lightbox[open] { grid-template-columns: 44px 1fr 44px; }
  .lightbox figure { padding-inline: 2px; }
}

@media (prefers-reduced-motion: reduce) {
  * { scroll-behavior: auto !important; transition: none !important; }
}
.gallery-item.image-error { display:none; }

body.no-scroll { overflow: hidden; }

/* Simple portfolio protection: keeps normal visitors from right-click saving or dragging images. */
img, .gallery-image, .hero-image, .story-photo-wrap img, .milonga-poster img, .about-portrait img, #lightbox-image {
  -webkit-user-drag: none;
  user-drag: none;
  -webkit-touch-callout: none;
  user-select: none;
}
.rights-note {
  max-width: 640px;
  margin: 18px auto 0;
  color: #8a867d;
  font-size: 11px;
  letter-spacing: .08em;
  text-transform: uppercase;
}


/* V11: quieter contact block */
.contact-section.contact-simple {
  padding: clamp(76px, 10vw, 138px) clamp(24px, 7vw, 108px);
  text-align: center;
  background: #efeee9;
  color: #111;
}
.contact-section.contact-simple h2 {
  margin: 0;
  font-size: clamp(34px, 4.4vw, 62px);
  letter-spacing: -.02em;
}
.contact-section.contact-simple .contact-links {
  max-width: 920px;
  margin: 34px auto 0;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  font-size: 12px;
  letter-spacing: .08em;
  text-transform: uppercase;
}
.contact-section.contact-simple .contact-links a,
.contact-section.contact-simple .contact-links span {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: 14px 18px;
  border: 1px solid rgba(0,0,0,.18);
  background: rgba(255,255,255,.22);
}
.contact-section.contact-simple .contact-links a { border-bottom: 1px solid rgba(0,0,0,.18); }
.contact-section.contact-simple .contact-note {
  max-width: 680px;
  margin-top: 28px;
  font-size: 13px;
}
.contact-section.contact-simple .rights-note {
  max-width: 640px;
  margin-top: 16px;
  color: #8a867d;
  font-size: 10px;
  letter-spacing: .08em;
  text-transform: uppercase;
}

/* V11: easier mobile navigation, no full-screen menu */
@media (max-width: 980px) {
  .site-header {
    flex-wrap: wrap;
    align-items: flex-start;
    gap: 12px;
    padding-bottom: 12px;
  }
  .menu-button { display: none !important; }
  .main-nav {
    position: static;
    inset: auto;
    z-index: auto;
    display: flex !important;
    flex: 1 0 100%;
    flex-direction: row;
    justify-content: flex-start;
    align-items: center;
    gap: 0;
    overflow-x: auto;
    padding: 2px 0 0;
    background: transparent;
    font-family: var(--sans);
    font-size: 10px;
    letter-spacing: .16em;
    text-transform: uppercase;
    white-space: nowrap;
    scrollbar-width: none;
  }
  .main-nav::-webkit-scrollbar { display: none; }
  .main-nav a {
    padding: 9px 14px;
    border: 1px solid rgba(255,255,255,.13);
    border-left: 0;
    background: rgba(255,255,255,.02);
  }
  .main-nav a:first-child { border-left: 1px solid rgba(255,255,255,.13); }
}

@media (max-width: 700px) {
  .site-header { min-height: auto; padding-top: 16px; }
  .brand-main { font-size: 18px; letter-spacing: .24em; }
  .contact-section.contact-simple .contact-links {
    grid-template-columns: 1fr;
    max-width: 360px;
  }
}
