/* =========================================================
   Landing profesional — Blanco y negro, editorial
   ========================================================= */

:root {
  --black: #000000;
  --white: #ffffff;
  --ink: #141414;        /* texto principal sobre blanco */
  --paper: #f2f2f2;       /* fondo alterno claro */
  --gray-600: #5a5a5a;
  --gray-400: #8a8a8a;
  --gray-300: #d4d4d4;
  --gray-200: #e6e6e6;
  --gold: #C9A227;
  --gold-soft: #E8D48A;

  --font-display: 'Bricolage Grotesque', 'Segoe UI', Arial, sans-serif;
  --font-body: 'Work Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-accent: 'Bricolage Grotesque', 'Segoe UI', Arial, sans-serif;

  --hero-overlay-rgb: 0, 0, 0;
  --nav-bg-rgb: 255, 255, 255;
  --nav-text: #141414;

  --max-width: 1180px;
  --gutter: clamp(24px, 5vw, 64px);
  --section-pad: clamp(64px, 10vw, 140px);

  --ease: cubic-bezier(0.16, 1, 0.3, 1);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--white);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

body.no-scroll { overflow: hidden; }

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

a { color: inherit; }

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.08;
  margin: 0;
}

p { margin: 0 0 1em; max-width: 62ch; }

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

.section {
  padding: var(--section-pad) 0;
  position: relative;
}

.section--dark {
  background: var(--black);
  color: var(--white);
}

/* ---------------- Fondo de imagen/video por sección ---------------- */

.section--media { overflow: hidden; }
.section--media .container { position: relative; z-index: 1; }

.section-media {
  position: absolute;
  inset: 0;
  z-index: 0;
}
.section-media img,
.section-media video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.section-media__overlay {
  position: absolute;
  inset: 0;
}
.section-media__overlay--oscuro { background: rgba(0, 0, 0, 0.55); }
.section-media__overlay--claro { background: rgba(255, 255, 255, 0.72); }

.section--paper {
  background: var(--paper);
}

.section-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: clamp(36px, 6vw, 64px);
  border-bottom: 2px solid var(--gold);
  padding-bottom: 20px;
}

.section-head .index {
  font-family: var(--font-accent);
  font-style: italic;
  font-size: 0.95rem;
  color: var(--gold);
}

.section--dark .section-head .index { color: var(--gold-soft); }

.section-title {
  font-size: clamp(2rem, 4vw, 3.1rem);
}

.section-kicker {
  font-family: var(--font-accent);
  font-size: 0.95rem;
  color: var(--gray-600);
  margin: 0 0 10px;
}
.section--dark .section-kicker { color: var(--gray-300); }

/* ---------------- Navegación ---------------- */

.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px var(--gutter);
  background: rgba(var(--nav-bg-rgb), 0.86);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s var(--ease), background 0.3s var(--ease);
}

.nav.is-scrolled {
  border-bottom-color: var(--gray-200);
}

.nav__brand {
  font-family: var(--font-display);
  font-size: 1.15rem;
  text-decoration: none;
  letter-spacing: 0.01em;
  display: flex;
  align-items: center;
  color: var(--nav-text);
}

.nav__brand-logo {
  height: 38px;
  width: auto;
  display: block;
}

.nav__links {
  display: flex;
  gap: clamp(14px, 2vw, 30px);
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav__links a {
  text-decoration: none;
  font-size: 0.92rem;
  color: var(--nav-text);
  position: relative;
  padding-bottom: 3px;
}

.nav__links a::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: 0;
  height: 2px;
  width: 0;
  background: var(--gold);
  transition: width 0.25s var(--ease);
}

.nav__links a:hover::after,
.nav__links a:focus-visible::after {
  width: 100%;
}

.nav__toggle {
  display: none;
  background: none;
  border: 1px solid var(--nav-text);
  color: var(--nav-text);
  border-radius: 0;
  width: 40px;
  height: 40px;
  cursor: pointer;
}

/* ---------------- Hero ---------------- */

.hero {
  position: relative;
  overflow: hidden;
  background: var(--black);
  color: var(--white);
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding-top: 96px;
}

.hero__media {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
}
.hero__media img,
.hero__video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.hero__yt-wrap {
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
}
.hero__yt-wrap iframe {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 100vw;
  height: 56.25vw; /* proporción 16:9 */
  min-height: 100%;
  min-width: 177.78vh; /* 16:9 calculado desde el alto */
  transform: translate(-50%, -50%);
}
.hero__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(var(--hero-overlay-rgb), 0.6) 0%, rgba(var(--hero-overlay-rgb), 0.72) 100%);
}

.hero .container {
  position: relative;
  z-index: 1;
}

.hero__eyebrow {
  font-family: var(--font-accent);
  font-size: 0.95rem;
  letter-spacing: 0.02em;
  color: var(--gray-300);
  margin-bottom: 22px;
  padding-left: 18px;
  position: relative;
}
.hero__eyebrow::before {
  content: '';
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 10px;
  height: 2px;
  background: var(--gold);
}

.hero__name {
  font-size: clamp(2.6rem, 6.4vw, 5rem);
  margin-bottom: 18px;
  text-shadow: 0 2px 24px rgba(0, 0, 0, 0.35);
}

.hero__tagline {
  font-family: var(--font-display);
  font-style: italic;
  font-size: clamp(1.15rem, 2vw, 1.5rem);
  color: var(--gray-300);
  max-width: 46ch;
  margin-bottom: 34px;
}

.hero__actions {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

.hero__scroll {
  position: absolute;
  bottom: 34px;
  left: var(--gutter);
  z-index: 1;
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.82rem;
  color: var(--gray-300);
}

.hero__scroll-line {
  width: 32px;
  height: 1px;
  background: var(--gray-300);
  position: relative;
  overflow: hidden;
}
.hero__scroll-line::after {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--white);
  transform: translateX(-100%);
  animation: scrollLine 2.2s var(--ease) infinite;
}
@keyframes scrollLine {
  0% { transform: translateX(-100%); }
  60%, 100% { transform: translateX(100%); }
}

/* ---------------- Botones ---------------- */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 13px 26px;
  border: 1px solid currentColor;
  font-family: var(--font-body);
  font-size: 0.92rem;
  text-decoration: none;
  background: transparent;
  color: inherit;
  cursor: pointer;
  transition: background 0.25s var(--ease), color 0.25s var(--ease);
}

.btn--primary {
  background: var(--white);
  color: var(--black);
  border-color: var(--white);
}
.btn--primary:hover { background: transparent; color: var(--white); }

.section:not(.section--dark) .btn--primary {
  background: var(--black);
  color: var(--white);
  border-color: var(--black);
}
.section:not(.section--dark) .btn--primary:hover {
  background: transparent;
  color: var(--black);
}

.btn--ghost:hover { background: currentColor; }
.btn--ghost:hover { color: var(--black); }
.section--dark .btn--ghost:hover,
.hero .btn--ghost:hover { color: var(--white); }
.btn--ghost:hover span { mix-blend-mode: difference; }

/* ---------------- Biografía ---------------- */

.bio__grid {
  display: grid;
  grid-template-columns: 0.5fr 1fr;
  gap: clamp(32px, 6vw, 90px);
}

.bio__lead {
  font-family: var(--font-display);
  font-size: clamp(1.3rem, 2.2vw, 1.7rem);
  line-height: 1.35;
}

.bio__body {
  color: var(--gray-600);
  white-space: pre-line;
}
.bio__body p {
  max-width: 68ch;
  margin: 0 0 1em;
}

/* ---------------- Trayectoria (timeline) ---------------- */

.timeline {
  list-style: none;
  margin: 0;
  padding: 0;
  border-top: 1px solid var(--gray-600);
}

.timeline__item {
  display: grid;
  grid-template-columns: 110px 1fr;
  gap: clamp(20px, 4vw, 48px);
  padding: 34px 0;
  border-bottom: 1px solid rgba(255,255,255,0.18);
}

.timeline__year {
  font-family: var(--font-accent);
  font-style: italic;
  font-size: 1.4rem;
  color: var(--gold-soft);
}

.timeline__title {
  font-size: 1.25rem;
  margin-bottom: 8px;
}

.timeline__desc {
  color: var(--gray-300);
  margin: 0;
}

/* ---------------- Proyectos ---------------- */

.projects__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.project-card {
  background: var(--white);
  padding: 30px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 14px;
  text-decoration: none;
  color: inherit;
  border: 1px solid var(--gray-300);
  border-radius: 0;
  width: 100%;
  font-family: inherit;
  text-align: left;
  cursor: pointer;
  appearance: none;
  -webkit-appearance: none;
  box-shadow: none;
  outline: none;
  transition: background 0.3s var(--ease), border-color 0.3s var(--ease);
}

.project-card:hover { background: var(--paper); border-color: var(--gray-600); }

.project-card__more {
  font-size: 0.85rem;
  color: var(--ink);
  margin-top: -4px;
}

.project-card__num {
  font-family: var(--font-accent);
  font-style: italic;
  color: var(--gold);
  font-size: 0.95rem;
}

.project-card__thumb {
  aspect-ratio: 16/11;
  overflow: hidden;
  background: var(--gray-200);
}
.project-card__thumb img {
  width: 100%; height: 100%; object-fit: cover;
}

.project-card__name { font-size: 1.15rem; }

.project-card__desc {
  color: var(--gray-600);
  font-size: 0.94rem;
  margin: 0;
}

/* ---------------- Conferencias ---------------- */

.conf-tabs {
  display: flex;
  gap: 10px;
  margin-bottom: 40px;
}

.conf-tab {
  font-family: var(--font-body);
  font-size: 0.92rem;
  background: none;
  border: 1px solid var(--gray-300);
  color: var(--ink);
  padding: 10px 20px;
  cursor: pointer;
  transition: background 0.25s var(--ease), color 0.25s var(--ease);
}

.conf-tab[aria-selected="true"] {
  background: var(--ink);
  color: var(--white);
  border-color: var(--ink);
  box-shadow: inset 0 -3px 0 var(--gold);
}

.conf-list { list-style: none; margin: 0; padding: 0; }

/* ---------------- Paginación ---------------- */

.pager {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 6px;
  margin-top: 32px;
}
.pager__btn {
  min-width: 36px;
  height: 36px;
  padding: 0 10px;
  border: 1px solid var(--gray-300);
  background: transparent;
  color: inherit;
  font-family: var(--font-body);
  font-size: 0.88rem;
  cursor: pointer;
  transition: background 0.2s var(--ease), border-color 0.2s var(--ease);
}
.pager__btn:hover:not(:disabled) { border-color: var(--gold); }
.pager__btn.is-active {
  background: var(--ink);
  color: var(--white);
  border-color: var(--ink);
}
.section--dark .pager__btn { border-color: rgba(255,255,255,0.3); }
.section--dark .pager__btn.is-active { background: var(--white); color: var(--black); border-color: var(--white); }
.pager__btn:disabled { opacity: 0.35; cursor: default; }

.conf-panel[hidden] { display: none; }

.conf-item {
  display: grid;
  grid-template-columns: 180px 1fr auto;
  gap: 20px;
  align-items: baseline;
  padding: 22px 0;
  border-bottom: 1px solid var(--gray-200);
}

.conf-item__date {
  font-size: 0.88rem;
  color: var(--gray-600);
  text-transform: capitalize;
}

.conf-item__title { font-size: 1.1rem; margin-bottom: 4px; }

.conf-item__place {
  font-size: 0.88rem;
  color: var(--gray-400);
  white-space: nowrap;
}

.conf-item__desc {
  color: var(--gray-600);
  margin: 6px 0 0;
  font-size: 0.94rem;
}

.badge-proxima {
  display: inline-block;
  font-size: 0.72rem;
  letter-spacing: 0.02em;
  color: var(--gold);
  border: 1px solid var(--gold);
  padding: 3px 9px;
  margin-left: 10px;
}

/* ---------------- Eventos ---------------- */

.events__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

.event-card {
  background: var(--black);
  color: var(--white);
}

.event-card__thumb {
  aspect-ratio: 16/10;
  overflow: hidden;
  position: relative;
}
.event-card__thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: opacity 0.4s ease;
}

.event-card__body { padding: 22px; }

.event-card__date {
  font-size: 0.82rem;
  color: var(--gray-300);
  margin-bottom: 8px;
}

.event-card__title { font-size: 1.1rem; margin-bottom: 8px; }

.event-card__desc {
  color: var(--gray-300);
  font-size: 0.9rem;
  margin: 0;
}

.event-card__more {
  display: inline-block;
  margin-top: 14px;
  background: none;
  border: none;
  padding: 0;
  color: var(--gold-soft);
  font-family: var(--font-body);
  font-size: 0.86rem;
  cursor: pointer;
}
.event-card__more:hover { text-decoration: underline; }

/* ---------------- Ofrenda ---------------- */

.offering__content {
  max-width: 700px;
  margin: 0 auto;
  text-align: center;
}
.offering__content .section-kicker,
.offering__content .section-title {
  display: block;
}
.offering__content .section-title { margin-bottom: 22px; }
.offering__texto {
  color: var(--gray-300);
  margin-bottom: 32px;
  font-size: 1.05rem;
}
.offering__texto p { margin: 0 0 1em; }

.offering__metodos {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 20px;
  margin-top: 48px;
  max-width: 920px;
  margin-left: auto;
  margin-right: auto;
}

.offering-method {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.18);
  padding: 24px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}
.section:not(.section--dark) .offering-method {
  background: var(--paper);
  border-color: var(--gray-300);
}

.offering-method__nombre {
  font-size: 1.05rem;
  margin: 0;
}

.offering-method__qr {
  width: 100%;
  max-width: 180px;
  aspect-ratio: 1/1;
  padding: 8px;
  background: var(--white);
  border: none;
  cursor: pointer;
}
.offering-method__qr img { width: 100%; height: 100%; object-fit: contain; display: block; }

.offering-method__hint {
  font-size: 0.78rem;
  color: var(--gray-300);
  margin: 0;
}
.section:not(.section--dark) .offering-method__hint { color: var(--gray-600); }

.offering-method__btn { margin-top: 4px; }

.offering-method__texto {
  font-size: 0.92rem;
  color: var(--gray-300);
  word-break: break-word;
}
.section:not(.section--dark) .offering-method__texto { color: var(--gray-600); }
.offering-method__texto p { margin: 0 0 0.6em; }

/* ---------------- Contacto ---------------- */

.contact__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(32px, 6vw, 80px);
  align-items: start;
}

.contact__title {
  font-size: clamp(2.2rem, 5vw, 3.6rem);
  margin-bottom: 26px;
}

.contact__list {
  list-style: none;
  margin: 0 0 30px;
  padding: 0;
  font-size: 1.05rem;
}
.contact__list li {
  padding: 14px 0;
  border-bottom: 1px solid rgba(255,255,255,0.18);
  display: flex;
  justify-content: space-between;
  gap: 12px;
}
.contact__list a { text-decoration: none; }
.contact__list a:hover { text-decoration: underline; }

.social {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}
.social a {
  border: 1px solid var(--gray-300);
  padding: 10px 18px;
  text-decoration: none;
  font-size: 0.9rem;
  transition: background 0.25s var(--ease), color 0.25s var(--ease), border-color 0.25s var(--ease);
}
.social a:hover { background: var(--gold); color: var(--black); border-color: var(--gold); }

/* ---------------- Footer ---------------- */

.footer {
  padding: 26px var(--gutter);
  background: var(--black);
  color: var(--gray-400);
  font-size: 0.82rem;
  display: flex;
  justify-content: space-between;
  border-top: 1px solid rgba(255,255,255,0.15);
}
.footer a {
  color: var(--gray-300);
  text-decoration: underline;
}
.footer a:hover { color: var(--white); }

/* ---------------- Animaciones al hacer scroll ---------------- */

.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.8s var(--ease), transform 0.8s var(--ease);
}
.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}
.reveal-group > * {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
}
.reveal-group.is-visible > * {
  opacity: 1;
  transform: translateY(0);
}
.reveal-group.is-visible > *:nth-child(1) { transition-delay: 0.05s; }
.reveal-group.is-visible > *:nth-child(2) { transition-delay: 0.12s; }
.reveal-group.is-visible > *:nth-child(3) { transition-delay: 0.19s; }
.reveal-group.is-visible > *:nth-child(4) { transition-delay: 0.26s; }
.reveal-group.is-visible > *:nth-child(5) { transition-delay: 0.33s; }
.reveal-group.is-visible > *:nth-child(6) { transition-delay: 0.4s; }
.reveal-group.is-visible > *:nth-child(7) { transition-delay: 0.47s; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal, .reveal-group > *, .hero__scroll-line::after {
    transition: none !important;
    animation: none !important;
    opacity: 1 !important;
    transform: none !important;
  }
}

/* ---------------- Galería ---------------- */

.gallery__grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 4px;
}

.gallery-item {
  aspect-ratio: 4/3;
  overflow: hidden;
  padding: 0;
  border: none;
  cursor: pointer;
  background: var(--gray-200);
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s var(--ease);
}

.gallery-item:hover img { transform: scale(1.05); }

/* ---------------- Modal de proyecto ---------------- */

.modal {
  position: fixed;
  inset: 0;
  z-index: 300;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: clamp(16px, 4vw, 40px);
}

.modal[hidden] { display: none; }

.modal__overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.82);
}

.modal__panel {
  position: relative;
  background: var(--white);
  color: var(--ink);
  width: 100%;
  max-width: 760px;
  max-height: 88vh;
  overflow-y: auto;
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
}

.modal__thumb {
  background: var(--gray-200);
  min-height: 220px;
}
.modal__thumb img { width: 100%; height: 100%; object-fit: cover; }

.modal__body {
  padding: clamp(24px, 4vw, 40px);
}

.modal__title {
  font-size: clamp(1.5rem, 3vw, 2rem);
  margin: 6px 0 18px;
}

.modal__desc {
  color: var(--gray-600);
  white-space: pre-line;
}

.modal__close {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 36px;
  height: 36px;
  border: 1px solid var(--gray-300);
  background: var(--white);
  font-size: 1.4rem;
  line-height: 1;
  cursor: pointer;
  z-index: 2;
}
.modal__close:hover { background: var(--paper); }

.modal-gallery {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 6px;
  margin: 20px 0 6px;
}
.modal-gallery__item {
  aspect-ratio: 1/1;
  padding: 0;
  border: none;
  cursor: pointer;
  overflow: hidden;
  background: var(--gray-200);
}
.modal-gallery__item img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform 0.4s var(--ease);
}
.modal-gallery__item:hover img { transform: scale(1.08); }

.modal__cta { margin-top: 22px; }

/* ---------------- Lightbox (visor de una sola imagen) ---------------- */

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 400;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: clamp(16px, 5vw, 56px);
}
.lightbox[hidden] { display: none; }

.lightbox__overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.94);
}

.lightbox__figure {
  position: relative;
  z-index: 1;
  margin: 0;
  max-width: 100%;
  max-height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}

.lightbox__img {
  max-width: 100%;
  max-height: 80vh;
  object-fit: contain;
}

.lightbox__caption {
  color: var(--gray-300);
  font-size: 0.88rem;
  text-align: center;
}

.lightbox__close {
  position: absolute;
  top: 18px;
  right: 18px;
  z-index: 2;
  width: 42px;
  height: 42px;
  border: 1px solid rgba(255,255,255,0.4);
  background: transparent;
  color: var(--white);
  font-size: 1.6rem;
  line-height: 1;
  cursor: pointer;
}
.lightbox__close:hover { background: rgba(255,255,255,0.12); }

/* ---------------- Botones flotantes ---------------- */

.fab {
  position: fixed;
  right: 24px;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--black);
  color: var(--white);
  border: none;
  text-decoration: none;
  cursor: pointer;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.28);
  z-index: 150;
  transition: transform 0.2s var(--ease), opacity 0.25s var(--ease);
}
.fab:hover { transform: scale(1.07); }

.fab--whatsapp { bottom: 24px; }

.fab--top {
  bottom: 88px;
  opacity: 0;
  pointer-events: none;
  transform: translateY(8px);
}
.fab--top.is-visible {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
  .fab { transition: none; }
}

/* ---------------- Foco visible (accesibilidad) ---------------- */

a:focus-visible,
button:focus-visible {
  outline: 2px solid var(--ink);
  outline-offset: 3px;
}
.section--dark a:focus-visible,
.section--dark button:focus-visible {
  outline-color: var(--white);
}

/* ---------------- Responsive ---------------- */

@media (max-width: 960px) {
  .bio__grid { grid-template-columns: 1fr; }
  .projects__grid { grid-template-columns: repeat(2, 1fr); }
  .events__grid { grid-template-columns: 1fr 1fr; }
  .contact__grid { grid-template-columns: 1fr; }
  .conf-item { grid-template-columns: 1fr; gap: 4px; }
  .conf-item__place { white-space: normal; }
  .modal__panel { grid-template-columns: 1fr; }
  .modal__thumb { min-height: 180px; }
}

@media (max-width: 680px) {
  .nav__links { display: none; }
  .nav__toggle { display: block; }
  .nav.is-open .nav__links {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: rgb(var(--nav-bg-rgb));
    padding: 20px var(--gutter) 28px;
    border-bottom: 1px solid var(--gray-200);
  }
  .projects__grid { grid-template-columns: 1fr; }
  .events__grid { grid-template-columns: 1fr; }
  .gallery__grid { grid-template-columns: repeat(2, 1fr); }
  .modal-gallery { grid-template-columns: repeat(2, 1fr); }
  .timeline__item { grid-template-columns: 1fr; gap: 6px; }
  .section-head { flex-direction: column; gap: 8px; }
  .footer { flex-direction: column; gap: 8px; text-align: center; }
}
