:root {
  --ink: #0E1A2B;
  --cream: #F5EDE0;
  --cream-2: #EFE3D0;
  --burgundy: #8B1E3F;
  --mustard: #E8B22A;
  --magenta: #E63462;
  --teal: #1F6F70;
  --line: rgba(14, 26, 43, 0.15);

  --font-display: "Abril Fatface", serif;
  --font-serif: "Playfair Display", serif;
  --font-sans: "DM Sans", system-ui, sans-serif;
  --font-script: "Caveat", cursive;

  --radius: 18px;
  --shadow-soft: 0 30px 60px -25px rgba(14, 26, 43, 0.35);
  --shadow-hard: 12px 12px 0 var(--ink);
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 17px;
  line-height: 1.65;
  color: var(--ink);
  background: var(--cream);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

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

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

button { font-family: inherit; cursor: pointer; }

::selection { background: var(--mustard); color: var(--ink); }

/* ---------- NAV ---------- */

.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 6vw;
  background: rgba(245, 237, 224, 0.85);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}

.nav__logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-display);
  font-size: 22px;
}

.nav__logo-mark {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  background: var(--ink);
  color: var(--cream);
  border-radius: 50%;
  font-size: 18px;
}

.nav__menu {
  display: flex;
  gap: 32px;
  align-items: center;
  font-size: 15px;
  font-weight: 500;
}

.nav__menu a {
  position: relative;
  padding: 6px 0;
}

.nav__menu a:not(.nav__cta)::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 0;
  height: 2px;
  background: var(--burgundy);
  transition: width 0.3s ease;
}

.nav__menu a:not(.nav__cta):hover::after { width: 100%; }

.nav__cta {
  padding: 9px 18px;
  background: var(--ink);
  color: var(--cream);
  border-radius: 999px;
  transition: transform 0.2s ease, background 0.2s ease;
}

.nav__cta:hover { background: var(--burgundy); transform: translateY(-2px); }

.nav__toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: 0;
  padding: 8px;
}

.nav__toggle span {
  width: 24px;
  height: 2px;
  background: var(--ink);
  transition: transform 0.3s, opacity 0.3s;
}

.nav__toggle.is-open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav__toggle.is-open span:nth-child(2) { opacity: 0; }
.nav__toggle.is-open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---------- COMMON ---------- */

.section__kicker {
  font-family: var(--font-script);
  font-size: 28px;
  color: var(--burgundy);
  margin: 0 0 8px;
}

.section__title {
  font-family: var(--font-display);
  font-size: clamp(2.4rem, 5vw, 4rem);
  line-height: 1.05;
  margin: 0 0 28px;
  letter-spacing: -0.5px;
}

.section__title em {
  font-family: var(--font-serif);
  font-style: italic;
  color: var(--burgundy);
}

.btn {
  display: inline-block;
  padding: 14px 28px;
  border-radius: 999px;
  font-weight: 700;
  letter-spacing: 0.3px;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
  border: 2px solid var(--ink);
}

.btn--primary {
  background: var(--ink);
  color: var(--cream);
}
.btn--primary:hover {
  background: var(--burgundy);
  border-color: var(--burgundy);
  transform: translate(-3px, -3px);
  box-shadow: 6px 6px 0 var(--mustard);
}

.btn--ghost {
  background: transparent;
  color: var(--ink);
}
.btn--ghost:hover {
  background: var(--ink);
  color: var(--cream);
  transform: translate(-3px, -3px);
  box-shadow: 6px 6px 0 var(--magenta);
}

/* ---------- HERO ---------- */

.hero {
  position: relative;
  min-height: 92vh;
  padding: 60px 6vw 80px;
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 60px;
  align-items: center;
  overflow: hidden;
}

.hero__bg-shape {
  position: absolute;
  border-radius: 50%;
  filter: blur(60px);
  opacity: 0.45;
  z-index: 0;
}
.hero__bg-shape--1 { width: 420px; height: 420px; background: var(--mustard); top: -100px; left: -120px; }
.hero__bg-shape--2 { width: 360px; height: 360px; background: var(--magenta); bottom: -120px; right: 20%; opacity: 0.35; }
.hero__bg-shape--3 { width: 280px; height: 280px; background: var(--teal); top: 40%; right: -80px; opacity: 0.3; }

.hero__content { position: relative; z-index: 2; }

.hero__kicker {
  font-family: var(--font-sans);
  letter-spacing: 4px;
  font-size: 13px;
  font-weight: 700;
  color: var(--burgundy);
  margin: 0 0 24px;
}

.hero__title {
  font-family: var(--font-display);
  font-size: clamp(3.2rem, 9vw, 7.5rem);
  line-height: 0.95;
  margin: 0 0 28px;
  letter-spacing: -1.5px;
}

.hero__title-line { display: block; }
.hero__title-line--end { color: var(--burgundy); margin-left: 12vw; }

.hero__title-script {
  display: block;
  font-family: var(--font-script);
  font-weight: 700;
  font-size: 0.62em;
  color: var(--mustard);
  transform: rotate(-4deg) translateX(20%);
  line-height: 1;
  margin: -10px 0;
}

.hero__tagline {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: clamp(1.05rem, 1.6vw, 1.25rem);
  max-width: 460px;
  margin: 0 0 36px;
  color: var(--ink);
}

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

.hero__photo {
  position: relative;
  z-index: 1;
  justify-self: end;
  width: 100%;
  max-width: 600px;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 32px;
}

.hero__photo-frame {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--ink);
  transform: rotate(3deg);
  box-shadow: var(--shadow-hard);
  border: 4px solid var(--ink);
  cursor: pointer;
}

/* Skeleton shimmer mientras el video carga */
.hero__photo-frame::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    110deg,
    rgba(245, 237, 224, 0.05) 30%,
    rgba(232, 178, 42, 0.18) 50%,
    rgba(245, 237, 224, 0.05) 70%
  );
  background-size: 220% 100%;
  animation: galleryShimmer 1.4s ease-in-out infinite;
  pointer-events: none;
  z-index: 6;
  opacity: 1;
  transition: opacity 0.45s ease;
}

.hero__photo-frame.is-video-loaded::after {
  opacity: 0;
  animation: none;
}

@media (prefers-reduced-motion: reduce) {
  .hero__photo-frame::after { animation: none; }
}

.hero__photo-frame img,
.hero__photo-frame video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  filter: contrast(1.05) saturate(1.05);
  transition: filter 0.35s ease;
}

/* Always-visible hint: video is pausable */
.hero__photo-hint {
  position: absolute;
  top: 12px;
  left: 12px;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px 6px 10px;
  background: rgba(14, 26, 43, 0.78);
  color: var(--cream);
  border-radius: 999px;
  font-family: var(--font-sans);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  pointer-events: none;
  opacity: 0.85;
  animation: reelHintPulse 2.6s ease-in-out infinite;
  transition: opacity 0.3s ease, transform 0.3s ease;
}

.hero__photo-frame:hover .hero__photo-hint {
  opacity: 1;
  transform: scale(1.04);
}

@keyframes reelHintPulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(232, 178, 42, 0.55); }
  50%      { box-shadow: 0 0 0 8px rgba(232, 178, 42, 0); }
}

/* Paused state overlay */
.hero__photo-state {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 18px;
  background: rgba(14, 26, 43, 0.55);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.35s ease;
}

.hero__photo-frame.is-paused .hero__photo-state {
  opacity: 1;
}

.hero__photo-frame.is-paused .hero__photo-video {
  filter: contrast(1.05) saturate(0.5) brightness(0.5);
}

.hero__photo-frame.is-paused .hero__photo-hint {
  opacity: 0;
}

.hero__photo-state-icon {
  display: grid;
  place-items: center;
  width: 86px;
  height: 86px;
  border-radius: 50%;
  background: var(--mustard);
  color: var(--ink);
  border: 3px solid var(--ink);
  box-shadow: 6px 6px 0 var(--ink);
  transform: scale(0.7);
  opacity: 0;
  transition: transform 0.35s cubic-bezier(.34,1.56,.64,1), opacity 0.3s ease;
}

.hero__photo-state-icon svg {
  margin-left: 4px;
}

.hero__photo-frame.is-paused .hero__photo-state-icon {
  transform: scale(1);
  opacity: 1;
  animation: reelIconPulse 1.8s ease-in-out 0.35s infinite;
}

@keyframes reelIconPulse {
  0%, 100% { box-shadow: 6px 6px 0 var(--ink), 0 0 0 0 rgba(232, 178, 42, 0.5); }
  50%      { box-shadow: 6px 6px 0 var(--ink), 0 0 0 14px rgba(232, 178, 42, 0); }
}

.hero__photo-state-label {
  font-family: var(--font-sans);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--cream);
  text-align: center;
  line-height: 1.5;
  display: flex;
  flex-direction: column;
  gap: 2px;
  transform: translateY(8px);
  opacity: 0;
  transition: transform 0.3s ease 0.1s, opacity 0.3s ease 0.1s;
}

.hero__photo-state-label em {
  font-family: var(--font-script);
  font-style: italic;
  font-size: 18px;
  letter-spacing: 0.5px;
  text-transform: none;
  color: var(--mustard);
  font-weight: 400;
}

.hero__photo-frame.is-paused .hero__photo-state-label {
  transform: translateY(0);
  opacity: 1;
}

/* Click burst: instant feedback on play/pause */
.hero__photo-burst {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 90px;
  height: 90px;
  border-radius: 50%;
  border: 3px solid var(--mustard);
  background: rgba(232, 178, 42, 0.25);
  transform: translate(-50%, -50%) scale(0);
  opacity: 0;
  pointer-events: none;
  z-index: 3;
}

.hero__photo-frame.is-bursting .hero__photo-burst {
  animation: reelBurst 0.55s ease-out forwards;
}

@keyframes reelBurst {
  0%   { transform: translate(-50%, -50%) scale(0.4); opacity: 1; }
  100% { transform: translate(-50%, -50%) scale(2.6); opacity: 0; }
}

@media (prefers-reduced-motion: reduce) {
  .hero__photo-hint,
  .hero__photo-frame.is-paused .hero__photo-state-icon { animation: none !important; }
}

/* Progress / seek bar */
.hero__photo-progress {
  position: absolute;
  left: 16px;
  right: 16px;
  bottom: 14px;
  z-index: 4;
  height: 18px;
  display: flex;
  align-items: center;
  cursor: pointer;
  touch-action: none;
}

.hero__photo-progress:focus-visible {
  outline: none;
}

.hero__photo-progress:focus-visible .hero__photo-progress-track {
  box-shadow: 0 0 0 2px var(--mustard);
}

.hero__photo-progress-track {
  position: relative;
  width: 100%;
  height: 4px;
  background: rgba(245, 237, 224, 0.28);
  border-radius: 999px;
  transition: height 0.18s ease, background 0.18s ease;
}

.hero__photo-progress:hover .hero__photo-progress-track,
.hero__photo-progress.is-active .hero__photo-progress-track {
  height: 6px;
  background: rgba(245, 237, 224, 0.4);
}

.hero__photo-progress-buffered {
  position: absolute;
  top: 0;
  left: 0;
  height: 100%;
  width: 0;
  background: rgba(245, 237, 224, 0.55);
  border-radius: 999px;
  pointer-events: none;
  transition: width 0.25s ease;
}

.hero__photo-progress-fill {
  position: absolute;
  top: 0;
  left: 0;
  height: 100%;
  width: 0;
  background: var(--mustard);
  border-radius: 999px;
  pointer-events: none;
}

.hero__photo-progress-thumb {
  position: absolute;
  top: 50%;
  left: 0;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--mustard);
  border: 2px solid var(--ink);
  transform: translate(-50%, -50%) scale(0);
  transition: transform 0.2s ease;
  pointer-events: none;
}

.hero__photo-progress:hover .hero__photo-progress-thumb,
.hero__photo-progress.is-active .hero__photo-progress-thumb {
  transform: translate(-50%, -50%) scale(1);
}

.hero__photo-frame.is-paused .hero__photo-progress {
  z-index: 5;
}

/* Sound toggle button (always visible, fully outside the frame) */
.hero__photo-sound {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 16px 10px 14px;
  background: var(--ink);
  color: var(--cream);
  border: 2px solid var(--ink);
  border-radius: 999px;
  font-family: var(--font-sans);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  cursor: pointer;
  box-shadow: 4px 4px 0 var(--burgundy);
  transition: transform 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
}

.hero__photo-sound:hover {
  transform: translate(-2px, -2px);
  box-shadow: 6px 6px 0 var(--burgundy);
  background: var(--burgundy);
}

.hero__photo-sound:focus-visible {
  outline: none;
  box-shadow: 4px 4px 0 var(--burgundy), 0 0 0 3px var(--mustard);
}

.hero__photo-sound.is-on {
  background: var(--mustard);
  color: var(--ink);
  box-shadow: 4px 4px 0 var(--ink);
}

.hero__photo-sound.is-on:hover {
  background: var(--cream);
  box-shadow: 6px 6px 0 var(--ink);
}

.hero__photo-sound-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 18px;
  height: 18px;
}

.hero__photo-sound .icon { display: none; }
.hero__photo-sound .icon--mute { display: block; }
.hero__photo-sound.is-on .icon--mute { display: none; }
.hero__photo-sound.is-on .icon--sound { display: block; }

/* Expand toggle (top-right of the frame) */
.hero__photo-expand {
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 5;
  width: 36px;
  height: 36px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(14, 26, 43, 0.72);
  color: var(--cream);
  border: 1.5px solid rgba(245, 237, 224, 0.35);
  border-radius: 10px;
  cursor: pointer;
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  opacity: 0;
  transform: translateY(-4px);
  transition: opacity 0.25s ease, transform 0.25s ease,
              background 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

.hero__photo-frame:hover .hero__photo-expand,
.hero__photo-frame.is-paused .hero__photo-expand,
.hero__photo-frame.is-expanded .hero__photo-expand,
.hero__photo-expand:focus-visible {
  opacity: 1;
  transform: translateY(0);
}

.hero__photo-expand:hover {
  background: var(--mustard);
  border-color: var(--mustard);
  color: var(--ink);
}

.hero__photo-expand:focus-visible {
  outline: none;
  box-shadow: 0 0 0 3px var(--mustard);
}

.hero__photo-expand .icon { display: none; }
.hero__photo-expand .icon--enter { display: block; }
.hero__photo-frame.is-expanded .hero__photo-expand .icon--enter { display: none; }
.hero__photo-frame.is-expanded .hero__photo-expand .icon--exit { display: block; }

/* Backdrop when reel is expanded */
.reel-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(14, 26, 43, 0.88);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
  z-index: 1000;
}

body.is-reel-expanded .reel-backdrop {
  opacity: 1;
  pointer-events: auto;
}

/* Lift hero__photo out of its z-index: 1 stacking context so the
   expanded frame can sit above the backdrop. */
body.is-reel-expanded .hero__photo {
  z-index: 1020;
}

/* Expanded frame: floats over the page, keeps custom controls */
.hero__photo-frame.is-expanded {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) rotate(0deg);
  width: min(88vw, 1180px);
  height: auto;
  max-height: 78vh;
  aspect-ratio: 16 / 9;
  z-index: 1010;
  border-radius: 14px;
  border: 3px solid var(--mustard);
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.5), 12px 12px 0 var(--burgundy);
  cursor: default;
}

.hero__photo-frame.is-expanded .hero__photo-video {
  object-fit: contain;
  background: #000;
}

.hero__photo-frame.is-expanded .hero__photo-expand {
  top: 18px;
  right: 18px;
  width: 42px;
  height: 42px;
}

/* Keep a placeholder so the layout doesn't collapse while expanded */
.hero__photo-slot {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
}

@media (max-width: 720px) {
  .hero__photo-frame.is-expanded {
    width: 96vw;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5), 6px 6px 0 var(--burgundy);
  }
}

/* Lift the sound button above the backdrop while the reel is expanded.
   Anchor it to the viewport bottom with breathing room from the frame. */
body.is-reel-expanded .hero__photo-sound {
  position: fixed;
  bottom: clamp(24px, 4vh, 48px);
  left: 50%;
  transform: translateX(-50%);
  z-index: 1015;
  margin: 0;
}

body.is-reel-expanded .hero__photo-sound:hover {
  transform: translateX(-50%) translate(-2px, -2px);
}

.hero__scroll {
  position: absolute;
  bottom: 32px;
  left: 6vw;
  font-size: 12px;
  letter-spacing: 3px;
  text-transform: uppercase;
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--ink);
  z-index: 2;
}

.hero__scroll-line {
  width: 40px;
  height: 1px;
  background: var(--ink);
  display: inline-block;
  animation: pulse 2.2s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% { transform: scaleX(1); opacity: 1; }
  50%      { transform: scaleX(1.6); opacity: 0.5; }
}

/* ---------- ABOUT ---------- */

.about {
  padding: 120px 6vw;
  background: var(--cream-2);
  position: relative;
}

.about__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
  max-width: 1200px;
  margin: 0 auto;
}

.about__visual {
  position: relative;
}

.about__photo {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--ink);
}

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

.about__photo--main {
  width: 92%;
  margin: 0 auto;
  aspect-ratio: 4 / 5;
  transform: rotate(-2deg);
  box-shadow: var(--shadow-hard);
  border: 4px solid var(--ink);
}

.about__quote {
  position: absolute;
  bottom: -24px;
  right: -8px;
  max-width: 280px;
  font-family: var(--font-script);
  font-size: 22px;
  line-height: 1.3;
  color: var(--burgundy);
  background: var(--cream);
  padding: 18px 22px;
  border-radius: 14px;
  transform: rotate(3deg);
  box-shadow: 8px 8px 0 var(--magenta);
  border: 3px solid var(--ink);
  z-index: 3;
}

.about__quote-mark {
  font-family: var(--font-display);
  font-size: 50px;
  line-height: 0;
  vertical-align: -10px;
  color: var(--mustard);
  margin-right: 4px;
}

.about__text p { font-size: 1.05rem; margin: 0 0 18px; }
.about__text strong { color: var(--burgundy); }

.about__tags {
  list-style: none;
  padding: 0;
  margin: 28px 0 0;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.about__tags li {
  background: var(--ink);
  color: var(--cream);
  padding: 6px 14px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.3px;
}

.about__tags li:nth-child(2n) { background: var(--burgundy); }
.about__tags li:nth-child(3n) { background: var(--teal); }

/* ---------- MANIFESTO (Declaración de artista) ---------- */

.manifesto {
  padding: 120px 6vw;
  background: var(--cream);
  position: relative;
  overflow: hidden;
}

.manifesto::before {
  content: "“";
  position: absolute;
  top: -60px;
  left: 4vw;
  font-family: var(--font-display);
  font-size: 22rem;
  color: rgba(139, 30, 63, 0.07);
  line-height: 1;
  pointer-events: none;
}

.manifesto__inner {
  max-width: 820px;
  margin: 0 auto;
  position: relative;
  z-index: 1;
}

.manifesto__body {
  margin-top: 40px;
  font-family: var(--font-serif);
  font-size: 1.15rem;
  line-height: 1.75;
  color: var(--ink);
}

.manifesto__body p { margin: 0 0 22px; }

.manifesto__lead {
  font-size: 1.45rem !important;
  font-style: italic;
  line-height: 1.45 !important;
  color: var(--burgundy);
  margin-bottom: 32px !important;
}

.manifesto__quote {
  margin: 36px 0;
  padding: 28px 32px;
  background: var(--ink);
  color: var(--mustard);
  font-family: var(--font-display);
  font-size: 1.6rem;
  line-height: 1.3;
  border-radius: var(--radius);
  box-shadow: var(--shadow-hard);
  transform: rotate(-1deg);
}

.manifesto__verse {
  margin: 32px 0;
  padding: 8px 0 8px 24px;
  border-left: 3px solid var(--burgundy);
  font-style: italic;
  color: var(--burgundy);
}

.manifesto__verse p {
  margin: 0 0 6px !important;
  line-height: 1.55;
  font-size: 1.1rem;
}

.manifesto__verse p:last-child { margin-bottom: 0 !important; }

.manifesto__verse--final {
  margin-top: 48px;
  padding: 16px 0 16px 28px;
  border-left-width: 4px;
  font-family: var(--font-display);
  font-style: normal;
  font-size: 1.15rem;
  color: var(--ink);
}

.manifesto__verse--final p {
  font-size: 1.3rem;
  line-height: 1.45;
  margin-bottom: 10px !important;
}

.manifesto__sign {
  margin-top: 40px;
  font-family: var(--font-script);
  font-size: 32px;
  color: var(--burgundy);
  text-align: right;
}

/* ---------- SELF-EVAL (Autoevaluación) ---------- */

.selfeval {
  padding: 120px 6vw;
  background: var(--cream-2);
  max-width: 1400px;
  margin: 0 auto;
}

.selfeval__head { max-width: 720px; margin: 0 0 60px; }

.selfeval__intro {
  font-size: 1.05rem;
  color: rgba(14, 26, 43, 0.75);
  max-width: 560px;
}

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

.evalcard {
  position: relative;
  background: var(--cream);
  border: 3px solid var(--ink);
  border-radius: var(--radius);
  padding: 36px 28px 32px;
  box-shadow: var(--shadow-hard);
  transition: transform 0.3s ease;
}

.evalcard:hover { transform: translateY(-6px); }

.evalcard__num {
  position: absolute;
  top: -22px;
  left: 24px;
  background: var(--ink);
  color: var(--cream);
  font-family: var(--font-display);
  font-size: 20px;
  padding: 6px 16px;
  border-radius: 999px;
  letter-spacing: 1px;
}

.evalcard--strong .evalcard__num { background: var(--burgundy); }
.evalcard--growth .evalcard__num { background: var(--mustard); color: var(--ink); }
.evalcard--next   .evalcard__num { background: var(--teal); }

.evalcard__title {
  font-family: var(--font-display);
  font-size: 1.8rem;
  margin: 0 0 8px;
  color: var(--ink);
  line-height: 1.1;
}

.evalcard__lead {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 0.98rem;
  line-height: 1.4;
  color: var(--burgundy);
  margin: 0 0 20px;
  padding-bottom: 14px;
  border-bottom: 1px dashed rgba(139, 30, 63, 0.25);
}

.evalcard--growth .evalcard__lead { color: #8a6914; border-bottom-color: rgba(232, 178, 42, 0.5); }
.evalcard--next   .evalcard__lead { color: var(--teal); border-bottom-color: rgba(31, 111, 112, 0.35); }

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

.evalcard__list li {
  position: relative;
  padding: 10px 0 10px 22px;
  border-top: 1px solid var(--line);
  font-size: 0.98rem;
  line-height: 1.45;
}

.evalcard__list li:first-child { border-top: 0; }

.evalcard__list li::before {
  content: "✶";
  position: absolute;
  left: 0;
  top: 10px;
  color: var(--burgundy);
  font-size: 14px;
}

.evalcard--growth .evalcard__list li::before { color: var(--mustard); }
.evalcard--next   .evalcard__list li::before { color: var(--teal); }

/* ---------- GALLERY (Galería) ---------- */

.gallery {
  padding: 120px 6vw;
  max-width: 1400px;
  margin: 0 auto;
}

.gallery__head { max-width: 720px; margin: 0 0 40px; }

.gallery__intro {
  font-size: 1.05rem;
  color: rgba(14, 26, 43, 0.75);
  max-width: 560px;
}

.gallery__filter {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 0 0 50px;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--line);
}

.gallery__filter-btn {
  background: transparent;
  border: 1px solid var(--ink);
  padding: 8px 18px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 500;
  color: var(--ink);
  transition: all 0.2s ease;
}

.gallery__filter-btn:hover { background: var(--ink); color: var(--cream); }

.gallery__filter-btn.is-active {
  background: var(--burgundy);
  border-color: var(--burgundy);
  color: var(--cream);
}

.gallery__filter-btn .gallery__filter-count {
  display: inline-block;
  margin-left: 6px;
  opacity: 0.55;
  font-size: 11px;
  font-weight: 400;
}

.gallery__filter-btn.is-active .gallery__filter-count {
  opacity: 0.75;
}

.gallery__content {
  display: flex;
  flex-direction: column;
  gap: 64px;
}

.gallery__group {
  position: relative;
}

.gallery__group-head {
  margin: 0 0 24px;
  display: flex;
  align-items: baseline;
  gap: 14px;
  flex-wrap: wrap;
}

.gallery__group-kicker {
  font-family: var(--font-sans);
  font-size: 11px;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--burgundy);
  margin: 0;
}

.gallery__group-title {
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  margin: 0;
  color: var(--ink);
  font-weight: 400;
  line-height: 1.1;
}

.gallery__group-count {
  font-family: var(--font-script);
  font-size: 1.3rem;
  color: var(--mustard);
}

/* Masonry via CSS multi-column */
.gallery__masonry {
  column-count: 3;
  column-gap: 18px;
}

@media (max-width: 1024px) {
  .gallery__masonry { column-count: 2; }
}
@media (max-width: 600px) {
  .gallery__masonry { column-count: 1; }
}

.gallery__item {
  position: relative;
  display: block;
  width: 100%;
  margin: 0 0 18px;
  padding: 0;
  border: 3px solid var(--ink);
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--ink);
  box-shadow: var(--shadow-hard);
  cursor: zoom-in;
  break-inside: avoid;
  min-height: 160px;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.gallery__item:hover {
  transform: translateY(-4px);
  box-shadow: 14px 14px 0 var(--burgundy);
}

.gallery__item:focus-visible {
  outline: 3px solid var(--mustard);
  outline-offset: 4px;
}

/* Skeleton shimmer mientras carga */
.gallery__item::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    110deg,
    rgba(245, 237, 224, 0.08) 30%,
    rgba(232, 178, 42, 0.18) 50%,
    rgba(245, 237, 224, 0.08) 70%
  );
  background-size: 220% 100%;
  animation: galleryShimmer 1.4s ease-in-out infinite;
  pointer-events: none;
  opacity: 1;
  transition: opacity 0.35s ease;
}

.gallery__item.is-loaded::before {
  opacity: 0;
  animation: none;
}

@keyframes galleryShimmer {
  0%   { background-position: 220% 0; }
  100% { background-position: -220% 0; }
}

.gallery__item img {
  width: 100%;
  height: auto;
  display: block;
  opacity: 0;
  transition: opacity 0.45s ease, transform 0.6s ease, filter 0.4s ease;
}

.gallery__item.is-loaded img {
  opacity: 1;
}

.gallery__item:hover img {
  transform: scale(1.04);
  filter: saturate(1.15) contrast(1.05);
}

/* Loader global */
.gallery__loader {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  margin: -10px 0 24px;
  padding: 8px 16px;
  border-radius: 999px;
  background: rgba(139, 30, 63, 0.08);
  opacity: 1;
  transition: opacity 0.35s ease, transform 0.35s ease;
}

.gallery__loader.is-done {
  opacity: 0;
  transform: translateY(-4px);
  pointer-events: none;
}

.gallery__loader.is-hidden {
  display: none;
}

.gallery__loader-spinner {
  width: 14px;
  height: 14px;
  border: 2px solid var(--burgundy);
  border-top-color: transparent;
  border-radius: 50%;
  animation: gallerySpin 0.8s linear infinite;
}

.gallery__loader-text {
  font-family: var(--font-sans);
  font-size: 11px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--burgundy);
  font-weight: 600;
}

@keyframes gallerySpin {
  to { transform: rotate(360deg); }
}

@media (prefers-reduced-motion: reduce) {
  .gallery__item::before { animation: none; }
  .gallery__loader-spinner { animation-duration: 1.6s; }
}

.gallery__more-wrap {
  margin-top: 32px;
  padding-top: 12px;
  padding-bottom: 8px;
  text-align: center;
}

.gallery__more {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: transparent;
  border: 1px solid var(--ink);
  padding: 10px 24px;
  border-radius: 999px;
  font-family: var(--font-sans);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.05em;
  color: var(--ink);
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease, gap 0.2s ease;
}

.gallery__more:hover {
  background: var(--burgundy);
  border-color: var(--burgundy);
  color: var(--cream);
  gap: 14px;
}

/* ---------- GALLERY LIGHTBOX ---------- */

.gallery-lightbox {
  position: fixed;
  inset: 0;
  z-index: 120;
  background: rgba(0, 0, 0, 0.94);
  backdrop-filter: blur(8px);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 40px;
  opacity: 0;
  transition: opacity 0.25s ease;
  user-select: none;
  -webkit-user-select: none;
}

.gallery-lightbox img {
  user-select: none;
  -webkit-user-select: none;
  -webkit-user-drag: none;
  pointer-events: none;
}

.gallery-lightbox img::selection,
.gallery-lightbox *::selection {
  background: transparent;
}

.gallery-lightbox.is-open {
  display: flex;
  opacity: 1;
}

.gallery-lightbox__figure {
  margin: 0;
  max-width: min(1100px, 94vw);
  max-height: 90vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
}

.gallery-lightbox__figure img {
  max-width: 100%;
  max-height: 82vh;
  width: auto;
  height: auto;
  object-fit: contain;
  border: 4px solid var(--cream);
  border-radius: 4px;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.5);
}

.gallery-lightbox__caption {
  color: var(--cream);
  font-family: var(--font-script);
  font-size: 1.3rem;
  opacity: 0.85;
}

.gallery-lightbox__close {
  position: absolute;
  top: 24px;
  right: 24px;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--cream);
  color: var(--ink);
  border: none;
  font-size: 22px;
  line-height: 1;
  display: grid;
  place-items: center;
  cursor: pointer;
  transition: background 0.2s ease, transform 0.2s ease;
}

.gallery-lightbox__close:hover {
  background: var(--mustard);
  transform: rotate(90deg);
}

.gallery-lightbox__nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: rgba(245, 237, 224, 0.12);
  color: var(--cream);
  border: 1px solid rgba(245, 237, 224, 0.2);
  font-size: 32px;
  line-height: 1;
  display: grid;
  place-items: center;
  cursor: pointer;
  font-family: var(--font-display);
  transition: background 0.2s ease, color 0.2s ease;
}

.gallery-lightbox__nav:hover {
  background: var(--mustard);
  color: var(--ink);
}

.gallery-lightbox__nav--prev { left: 24px; }
.gallery-lightbox__nav--next { right: 24px; }

@media (max-width: 720px) {
  .gallery-lightbox { padding: 16px; }
  .gallery-lightbox__close { top: 14px; right: 14px; width: 40px; height: 40px; font-size: 20px; }
  .gallery-lightbox__nav { width: 44px; height: 44px; font-size: 24px; }
  .gallery-lightbox__nav--prev { left: 8px; }
  .gallery-lightbox__nav--next { right: 8px; }
}

/* ---------- BOOK ---------- */

.book {
  padding: 120px 6vw;
  background: var(--ink);
  color: var(--cream);
  position: relative;
  overflow: hidden;
}

.book::before {
  content: "BOOK";
  position: absolute;
  top: 30px;
  right: -30px;
  font-family: var(--font-display);
  font-size: 14rem;
  color: rgba(245, 237, 224, 0.04);
  letter-spacing: 12px;
  pointer-events: none;
}

.book__inner {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: 70px;
  max-width: 1280px;
  margin: 0 auto;
  align-items: center;
  position: relative;
  z-index: 1;
}

.book__cta-arrow {
  display: inline-block;
  transition: transform 0.25s ease;
  margin-left: 4px;
}

#openBookGallery:hover .book__cta-arrow {
  transform: translateX(4px);
}

.book__strip-wrap {
  position: relative;
  width: 100%;
  min-width: 0;
}

.book__strip {
  display: flex;
  gap: 18px;
  overflow-x: auto;
  overflow-y: hidden;
  padding: 24px 60px 16px 4px;
  scrollbar-width: none;
  -ms-overflow-style: none;
  cursor: grab;
  min-width: 0;
  max-width: 100%;
  scroll-behavior: auto;
}

.book__strip:active { cursor: grabbing; }

.book__strip::-webkit-scrollbar { display: none; width: 0; height: 0; }

.book__strip-wrap::before,
.book__strip-wrap::after {
  content: "";
  position: absolute;
  top: 24px;
  bottom: 60px;
  width: 60px;
  pointer-events: none;
  z-index: 2;
}

.book__strip-wrap::before {
  left: 0;
  background: linear-gradient(to left, transparent, var(--ink) 90%);
}

.book__strip-wrap::after {
  right: 0;
  background: linear-gradient(to right, transparent, var(--ink) 90%);
}

.book__strip-arrow {
  position: absolute;
  top: calc(50% - 22px);
  transform: translateY(-50%);
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--cream);
  color: var(--ink);
  border: none;
  font-family: var(--font-display);
  font-size: 30px;
  line-height: 1;
  display: grid;
  place-items: center;
  cursor: pointer;
  z-index: 4;
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.4);
  transition: background 0.2s ease, color 0.2s ease, transform 0.2s ease, opacity 0.2s ease;
}

.book__strip-arrow:hover {
  background: var(--mustard);
  transform: translateY(-50%) scale(1.08);
}

.book__strip-arrow:focus-visible {
  outline: 3px solid var(--mustard);
  outline-offset: 4px;
}

.book__strip-arrow:disabled {
  opacity: 0.35;
  cursor: not-allowed;
  pointer-events: none;
}

.book__strip-arrow--prev { left: -10px; }
.book__strip-arrow--next { right: -10px; }

.book__strip-hint {
  margin: 16px 0 0;
  font-family: var(--font-script);
  font-size: 20px;
  color: var(--mustard);
  text-align: center;
  opacity: 0.9;
}

.book__strip-item {
  flex: 0 0 auto;
  width: 240px;
  aspect-ratio: 3 / 4;
  border: 3px solid var(--cream);
  border-radius: 6px;
  overflow: hidden;
  box-shadow: 12px 12px 0 var(--burgundy);
  position: relative;
  padding: 0;
  background: rgba(245, 237, 224, 0.08);
  cursor: pointer;
  opacity: 1;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  will-change: opacity, transform;
}

.book__strip-item:hover {
  transform: translateY(-6px);
  box-shadow: 14px 14px 0 var(--mustard);
}

.book__strip-item:focus-visible {
  outline: 3px solid var(--mustard);
  outline-offset: 4px;
}

.book__strip-item:nth-child(3n+2) { box-shadow: 12px 12px 0 var(--mustard); }
.book__strip-item:nth-child(3n+2):hover { box-shadow: 14px 14px 0 var(--teal); }
.book__strip-item:nth-child(3n)   { box-shadow: 12px 12px 0 var(--teal); }
.book__strip-item:nth-child(3n):hover   { box-shadow: 14px 14px 0 var(--burgundy); }

.book__strip-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  pointer-events: none;
}

.book .section__kicker { color: var(--mustard); }
.book .section__title { color: var(--cream); }
.book .section__title em { color: var(--mustard); }

.book__text p {
  font-size: 1.05rem;
  color: rgba(245, 237, 224, 0.8);
  max-width: 460px;
}

.book__specs {
  list-style: none;
  padding: 0;
  margin: 32px 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px 32px;
  max-width: 480px;
}

.book__specs li {
  display: flex;
  flex-direction: column;
  padding: 10px 0;
  border-top: 1px solid rgba(245, 237, 224, 0.18);
}

.book__specs li span {
  font-family: var(--font-script);
  font-size: 20px;
  color: var(--mustard);
}

.book__specs li strong {
  font-family: var(--font-serif);
  font-weight: 400;
  font-size: 1rem;
  color: var(--cream);
}

.book__cta-row {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  margin-top: 12px;
}

/* ---------- BOOK GALLERY MODAL ---------- */

.book-gallery {
  position: fixed;
  inset: 0;
  z-index: 100;
  background: rgba(14, 26, 43, 0.94);
  backdrop-filter: blur(8px);
  overflow-y: auto;
  padding: 40px 20px 60px;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

.book-gallery.is-open {
  opacity: 1;
  visibility: visible;
}

.book-gallery__inner {
  max-width: 1200px;
  margin: 0 auto;
  padding-top: 20px;
  transform: translateY(20px);
  transition: transform 0.4s ease;
}

.book-gallery.is-open .book-gallery__inner {
  transform: translateY(0);
}

.book-gallery__close {
  position: fixed;
  top: 24px;
  right: 24px;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--cream);
  color: var(--ink);
  border: none;
  font-size: 22px;
  line-height: 1;
  display: grid;
  place-items: center;
  z-index: 110;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.35);
  transition: background 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.book-gallery__close:hover {
  background: var(--mustard);
  transform: rotate(90deg);
}

.book-gallery__head {
  text-align: center;
  color: var(--cream);
  margin: 0 0 48px;
}

.book-gallery__kicker {
  font-family: var(--font-sans);
  font-size: 12px;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--mustard);
  margin: 0 0 14px;
}

.book-gallery__title {
  font-family: var(--font-display);
  font-size: clamp(2.4rem, 5vw, 3.6rem);
  line-height: 1.05;
  color: var(--cream);
  margin: 0 0 10px;
  font-weight: 400;
}

.book-gallery__count {
  font-family: var(--font-script);
  font-size: 1.5rem;
  color: var(--mustard);
  margin: 0;
}

.book-gallery__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}

.book-gallery__item {
  margin: 0;
  aspect-ratio: 3 / 4;
  overflow: hidden;
  border-radius: 6px;
  border: 3px solid var(--cream);
  cursor: zoom-in;
  background: rgba(245, 237, 224, 0.08);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  padding: 0;
  display: block;
  width: 100%;
}

.book-gallery__item:hover {
  transform: translateY(-4px);
  box-shadow: 10px 10px 0 var(--mustard);
}

.book-gallery__item:focus-visible {
  outline: 3px solid var(--mustard);
  outline-offset: 4px;
}

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

/* ---------- BOOK LIGHTBOX ---------- */

.book-gallery__lightbox {
  position: fixed;
  inset: 0;
  z-index: 120;
  background: rgba(0, 0, 0, 0.94);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 40px;
  user-select: none;
  -webkit-user-select: none;
}

.book-gallery__lightbox img {
  user-select: none;
  -webkit-user-select: none;
  -webkit-user-drag: none;
}

.book-gallery__lightbox *::selection {
  background: transparent;
}

.book-gallery__lightbox.is-open {
  display: flex;
}

.book-gallery__lightbox-figure {
  margin: 0;
  max-width: min(960px, 92vw);
  max-height: 88vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
}

.book-gallery__lightbox-figure img {
  max-width: 100%;
  max-height: 80vh;
  width: auto;
  height: auto;
  object-fit: contain;
  border: 4px solid var(--cream);
  border-radius: 4px;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.5);
}

.book-gallery__lightbox-caption {
  color: var(--cream);
  font-family: var(--font-script);
  font-size: 1.3rem;
  opacity: 0.85;
}

.book-gallery__lightbox-close {
  position: absolute;
  top: 24px;
  right: 24px;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--cream);
  color: var(--ink);
  border: none;
  font-size: 22px;
  line-height: 1;
  display: grid;
  place-items: center;
  transition: background 0.2s ease, transform 0.2s ease;
}

.book-gallery__lightbox-close:hover {
  background: var(--mustard);
  transform: rotate(90deg);
}

.book-gallery__lightbox-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: rgba(245, 237, 224, 0.12);
  color: var(--cream);
  border: 1px solid rgba(245, 237, 224, 0.2);
  font-size: 32px;
  line-height: 1;
  display: grid;
  place-items: center;
  transition: background 0.2s ease, transform 0.2s ease;
  font-family: var(--font-display);
}

.book-gallery__lightbox-nav:hover {
  background: var(--mustard);
  color: var(--ink);
}

.book-gallery__lightbox-nav--prev { left: 24px; }
.book-gallery__lightbox-nav--next { right: 24px; }

/* ---------- TESTIMONIALS (Evaluaciones) ---------- */

.evals {
  padding: 120px 6vw;
  background: var(--cream-2);
  max-width: 1400px;
  margin: 0 auto;
}

.evals__head { max-width: 720px; margin: 0 0 40px; }

.evals__intro {
  font-size: 1.05rem;
  color: rgba(14, 26, 43, 0.75);
  max-width: 600px;
}

.evals__filter {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 0 0 50px;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--line);
}

.evals__filter-btn {
  background: transparent;
  border: 1px solid var(--ink);
  padding: 8px 18px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 500;
  color: var(--ink);
  transition: all 0.2s ease;
}

.evals__filter-btn:hover { background: var(--ink); color: var(--cream); }

.evals__filter-btn.is-active {
  background: var(--burgundy);
  border-color: var(--burgundy);
  color: var(--cream);
}

.evals__grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 36px 32px;
}

.eval-card {
  position: relative;
  background: var(--cream);
  border: 3px solid var(--ink);
  border-radius: var(--radius);
  padding: 32px 30px 28px;
  box-shadow: var(--shadow-hard);
  display: flex;
  flex-direction: column;
  gap: 14px;
  cursor: pointer;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  text-align: left;
  font-family: inherit;
}

.eval-card:hover {
  transform: translateY(-6px);
  box-shadow: 16px 16px 0 var(--ink);
}

.eval-card:focus-visible {
  outline: 3px solid var(--mustard);
  outline-offset: 4px;
}

.eval-card::before {
  content: "“";
  position: absolute;
  top: -32px;
  left: 18px;
  font-family: var(--font-display);
  font-size: 5rem;
  color: var(--burgundy);
  line-height: 1;
  pointer-events: none;
}

.eval-card--prof::before { color: var(--teal); }

.eval-card__head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  font-family: var(--font-sans);
  font-size: 12px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(14, 26, 43, 0.6);
}

.eval-card__badge {
  background: var(--burgundy);
  color: var(--cream);
  padding: 4px 12px;
  border-radius: 999px;
  font-size: 11px;
  letter-spacing: 0.22em;
  font-weight: 600;
}

.eval-card--prof .eval-card__badge {
  background: var(--teal);
}

.eval-card__year {
  font-family: var(--font-script);
  font-size: 18px;
  letter-spacing: 0;
  text-transform: none;
  color: var(--burgundy);
}

.eval-card--prof .eval-card__year { color: var(--teal); }

.eval-card__author {
  font-family: var(--font-display);
  font-size: 1.7rem;
  line-height: 1.1;
  margin: 4px 0 0;
  color: var(--ink);
  font-weight: 400;
}

.eval-card__role {
  font-family: var(--font-sans);
  font-size: 13px;
  color: rgba(14, 26, 43, 0.7);
  margin: 0;
  padding-bottom: 14px;
  border-bottom: 1px dashed rgba(14, 26, 43, 0.2);
}

.eval-card__preview {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 1rem;
  line-height: 1.6;
  color: var(--ink);
  margin: 0;
}

.eval-card__cta {
  margin-top: auto;
  padding-top: 16px;
  font-family: var(--font-sans);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: var(--burgundy);
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: gap 0.2s ease;
}

.eval-card--prof .eval-card__cta { color: var(--teal); }

.eval-card:hover .eval-card__cta { gap: 12px; }

.eval-card.is-hidden { display: none; }

/* ---------- EVAL MODAL ---------- */

.eval-modal {
  position: fixed;
  inset: 0;
  z-index: 100;
  background: rgba(14, 26, 43, 0.78);
  backdrop-filter: blur(6px);
  overflow-y: auto;
  padding: 40px 20px;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

.eval-modal.is-open {
  opacity: 1;
  visibility: visible;
}

.eval-modal__inner {
  position: relative;
  max-width: 760px;
  margin: 0 auto;
  background: var(--cream);
  border-radius: 4px;
  box-shadow:
    0 60px 120px -30px rgba(0, 0, 0, 0.5),
    0 0 0 1px rgba(14, 26, 43, 0.1);
  padding: 72px clamp(28px, 5vw, 72px) 80px;
  transform: translateY(20px);
  transition: transform 0.4s ease;
}

.eval-modal.is-open .eval-modal__inner {
  transform: translateY(0);
}

.eval-modal__close {
  position: fixed;
  top: 24px;
  right: 24px;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--ink);
  color: var(--cream);
  border: none;
  font-size: 22px;
  line-height: 1;
  display: grid;
  place-items: center;
  z-index: 110;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.35);
  transition: background 0.2s ease, transform 0.2s ease;
}

.eval-modal__close:hover {
  background: var(--burgundy);
  transform: rotate(90deg);
}

.eval-modal__header {
  text-align: center;
  margin: 0 0 36px;
  padding-bottom: 28px;
  border-bottom: 1px solid var(--line);
}

.eval-modal__badge {
  display: inline-block;
  background: var(--burgundy);
  color: var(--cream);
  padding: 5px 16px;
  border-radius: 999px;
  font-family: var(--font-sans);
  font-size: 11px;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  font-weight: 600;
  margin-bottom: 18px;
}

.eval-modal__badge.is-prof {
  background: var(--teal);
}

.eval-modal__title {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 2.8rem);
  line-height: 1.1;
  color: var(--ink);
  margin: 0 0 8px;
  font-weight: 400;
}

.eval-modal__role {
  font-family: var(--font-script);
  font-size: 1.4rem;
  color: var(--burgundy);
  margin: 0;
}

.eval-modal__badge.is-prof + .eval-modal__title + .eval-modal__role {
  color: var(--teal);
}

.eval-modal__ornament {
  font-family: var(--font-display);
  font-size: 1.3rem;
  color: var(--burgundy);
  opacity: 0.5;
  letter-spacing: 0.6em;
  margin: 16px 0 0;
}

.eval-modal__body {
  font-family: var(--font-serif);
  font-size: 1.05rem;
  line-height: 1.85;
  color: var(--ink);
  text-align: justify;
  hyphens: auto;
}

.eval-modal__body p {
  margin: 0 0 20px;
}

.eval-modal__body p:last-child {
  margin-bottom: 0;
}

.eval-modal__body p:first-child::first-letter {
  font-family: var(--font-display);
  float: left;
  font-size: 3.4rem;
  line-height: 0.85;
  padding: 6px 12px 0 0;
  color: var(--burgundy);
}

.eval-modal__body .eval-card__signature {
  margin-top: 32px;
  font-family: var(--font-script);
  font-size: 1.3rem;
  font-style: normal;
  color: var(--burgundy);
  text-align: right;
  line-height: 1.5;
}

.eval-modal__body .eval-card__signature::first-letter {
  font-family: var(--font-script);
  float: none;
  font-size: inherit;
  padding: 0;
  color: inherit;
}

/* ---------- FOOTER ---------- */

.footer {
  background: var(--ink);
  color: var(--cream);
  padding: 50px 6vw;
}

.footer__inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
}

.footer__mark {
  font-family: var(--font-display);
  font-size: 32px;
  margin: 0;
  color: var(--mustard);
}

.footer__text { margin: 0; font-size: 14px; opacity: 0.8; }

.footer__credit {
  margin: 0;
  font-family: var(--font-script);
  font-size: 20px;
  color: var(--mustard);
}

/* ---------- REVEAL ---------- */

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

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

/* ---------- SELFEVAL DEEPER CTA ---------- */

.selfeval__deeper {
  margin: 80px auto 0;
  max-width: 720px;
  text-align: center;
  padding: 48px 40px;
  background: linear-gradient(135deg, rgba(139, 30, 63, 0.06), rgba(232, 178, 42, 0.08));
  border: 1px solid var(--line);
  border-radius: var(--radius);
  position: relative;
}

.selfeval__deeper::before {
  content: "✦";
  position: absolute;
  top: -16px;
  left: 50%;
  transform: translateX(-50%);
  width: 32px;
  height: 32px;
  display: grid;
  place-items: center;
  background: var(--cream-2);
  color: var(--burgundy);
  border-radius: 50%;
  font-size: 14px;
}

.selfeval__deeper-text {
  font-family: var(--font-serif);
  font-size: 1.1rem;
  line-height: 1.6;
  color: var(--ink);
  margin: 0 0 28px;
  font-style: italic;
}

.selfeval__deeper-btn {
  display: inline-flex;
  align-items: center;
  gap: 12px;
}

.selfeval__deeper-arrow {
  transition: transform 0.25s ease;
}

.selfeval__deeper-btn:hover .selfeval__deeper-arrow {
  transform: translateX(4px);
}

/* ---------- BOOK MODAL ---------- */

body.is-locked {
  overflow: hidden;
}

.book-modal {
  position: fixed;
  inset: 0;
  z-index: 100;
  background: rgba(14, 26, 43, 0.78);
  backdrop-filter: blur(6px);
  overflow-y: auto;
  padding: 40px 20px;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

.book-modal.is-open {
  opacity: 1;
  visibility: visible;
}

.book-modal__inner {
  position: relative;
  max-width: 1080px;
  margin: 0 auto;
  background: var(--cream);
  background-image:
    radial-gradient(circle at 20% 10%, rgba(232, 178, 42, 0.05), transparent 50%),
    radial-gradient(circle at 80% 90%, rgba(139, 30, 63, 0.04), transparent 50%);
  border-radius: 4px;
  box-shadow:
    0 60px 120px -30px rgba(0, 0, 0, 0.5),
    0 0 0 1px rgba(14, 26, 43, 0.1);
  padding: 80px clamp(28px, 6vw, 90px) 100px;
  transform: translateY(20px);
  transition: transform 0.4s ease;
}

.book-modal.is-open .book-modal__inner {
  transform: translateY(0);
}

.book-modal__close {
  position: fixed;
  top: 24px;
  right: 24px;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--ink);
  color: var(--cream);
  border: none;
  font-size: 22px;
  line-height: 1;
  display: grid;
  place-items: center;
  z-index: 110;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.35);
  transition: background 0.2s ease, transform 0.2s ease;
}

.book-modal__close:hover {
  background: var(--burgundy);
  transform: rotate(90deg);
}

.book__header {
  text-align: center;
  margin: 0 0 56px;
  padding-bottom: 36px;
  border-bottom: 1px solid var(--line);
}

.book__kicker {
  font-family: var(--font-sans);
  font-size: 0.78rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--burgundy);
  margin: 0 0 18px;
}

.book__title {
  font-family: var(--font-display);
  font-size: clamp(2.4rem, 5vw, 3.8rem);
  line-height: 1.05;
  color: var(--ink);
  margin: 0 0 12px;
}

.book__author {
  font-family: var(--font-script);
  font-size: 1.7rem;
  color: var(--burgundy);
  margin: 0;
}

.book__ornament {
  font-family: var(--font-display);
  font-size: 1.5rem;
  color: var(--burgundy);
  opacity: 0.5;
  letter-spacing: 0.6em;
  margin: 18px 0 0;
}

.book__body {
  font-family: var(--font-serif);
  font-size: 1.02rem;
  line-height: 1.85;
  color: var(--ink);
  text-align: justify;
  hyphens: auto;
  column-count: 2;
  column-gap: 56px;
  column-rule: 1px solid rgba(14, 26, 43, 0.1);
}

.book__body p {
  margin: 0 0 18px;
  break-inside: avoid-column;
}

.book__chapter-title {
  column-span: all;
  text-align: center;
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 3vw, 2.1rem);
  color: var(--burgundy);
  margin: 48px 0 32px;
  padding-top: 24px;
  border-top: 1px solid rgba(14, 26, 43, 0.1);
  font-weight: 400;
}

.book__chapter-title:first-child {
  margin-top: 0;
  padding-top: 0;
  border-top: none;
}

.book__chapter-num {
  display: block;
  font-family: var(--font-sans);
  font-size: 0.72rem;
  letter-spacing: 0.35em;
  text-transform: uppercase;
  color: var(--ink);
  opacity: 0.55;
  margin-bottom: 10px;
  font-weight: 500;
}

.book__chapter-title + p::first-letter,
.book__chapter-title + .book__chapter-flow .book__chapter-flow__col:first-child > p:first-child::first-letter {
  font-family: var(--font-display);
  float: left;
  font-size: 3.6rem;
  line-height: 0.85;
  padding: 6px 12px 0 0;
  color: var(--burgundy);
}

.book__chapter-flow {
  column-span: all;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0 56px;
  margin: 0 0 24px;
  position: relative;
}

.book__chapter-flow::before {
  content: "";
  position: absolute;
  top: 4px;
  bottom: 4px;
  left: calc(50% - 0.5px);
  width: 1px;
  background: rgba(14, 26, 43, 0.1);
}

.book__chapter-flow__col > p {
  margin: 0 0 18px;
}

.book__chapter-flow__col > p:last-child {
  margin-bottom: 0;
}

.book__pull {
  font-style: italic;
  font-size: 1.15rem;
  color: var(--burgundy);
  padding: 4px 0 4px 20px;
  border-left: 3px solid var(--burgundy);
  margin: 24px 0 !important;
  text-align: left;
  hyphens: none;
}

.book__pull--final {
  font-family: var(--font-display);
  font-style: normal;
  font-size: 1.4rem;
  line-height: 1.4;
  border-left-width: 4px;
  margin-top: 36px !important;
}

.book__litany {
  column-span: all;
  max-width: 560px;
  margin: 28px auto;
  padding: 22px 28px;
  background: rgba(139, 30, 63, 0.05);
  border-radius: var(--radius);
  text-align: center;
}

.book__litany p {
  margin: 0 0 6px !important;
  font-family: var(--font-display);
  font-size: 1.2rem;
  line-height: 1.45;
  color: var(--burgundy);
  text-align: center;
  hyphens: none;
}

.book__litany p:last-child {
  margin-bottom: 0 !important;
}

.book__sign {
  margin-top: 56px;
  font-family: var(--font-script);
  font-size: 30px;
  color: var(--burgundy);
  text-align: right;
}

/* ---------- RESPONSIVE ---------- */

@media (max-width: 1024px) {
  .hero { grid-template-columns: 1fr; min-height: auto; padding-top: 40px; }
  .hero__photo { justify-self: center; max-width: 380px; margin-top: 30px; }
  .hero__title-line--end { margin-left: 8vw; }

  .about__grid { grid-template-columns: 1fr; gap: 60px; }
  .about__visual { max-width: 480px; margin: 0 auto; padding-bottom: 32px; }

  .selfeval__grid { grid-template-columns: 1fr; gap: 40px; max-width: 560px; margin: 0 auto; }

  .gallery__grid { grid-template-columns: repeat(2, 1fr); }
  .gphoto--big, .gphoto--wide { grid-column: span 2; }

  .book__inner { grid-template-columns: 1fr; gap: 50px; }
  .book__strip-wrap { order: 2; }
  .book__text { order: 1; text-align: center; }
  .book__text p, .book__specs { margin-left: auto; margin-right: auto; }
  .book__cta-row { justify-content: center; }

  .book-gallery__grid { grid-template-columns: repeat(2, 1fr); }

  .evals__grid { grid-template-columns: 1fr; }
}

@media (max-width: 720px) {
  .nav { padding: 14px 5vw; flex-wrap: nowrap; }
  .nav__menu {
    position: fixed;
    inset: 64px 0 auto 0;
    flex-direction: column;
    background: var(--cream);
    padding: 30px 5vw;
    gap: 22px;
    border-bottom: 1px solid var(--line);
    transform: translateY(-120%);
    transition: transform 0.35s ease;
    align-items: flex-start;
  }
  .nav__menu.is-open { transform: translateY(0); }
  .nav__toggle { display: flex; }
  .nav__logo-text { display: none; }

  .hero { padding: 30px 5vw 70px; }
  .hero__title { font-size: clamp(3rem, 14vw, 5rem); }
  .hero__title-line--end { margin-left: 0; }
  .hero__title-script { transform: rotate(-4deg); }
  .hero__scroll { display: none; }

  .about, .manifesto, .selfeval, .gallery, .book, .evals { padding: 80px 5vw; }

  .manifesto__lead { font-size: 1.2rem !important; }
  .manifesto__quote { font-size: 1.25rem; padding: 22px; }

  .gallery__grid { grid-template-columns: 1fr; gap: 22px; }
  .gphoto--big, .gphoto--wide { grid-column: span 1; aspect-ratio: 4 / 5; }

  .book__specs { grid-template-columns: 1fr; }
  .book::before { font-size: 7rem; }
  .book__strip-item { width: 200px; }
  .book__strip { padding: 20px 40px 24px 4px; }
  .book-gallery__grid { grid-template-columns: 1fr; gap: 16px; }
  .book-gallery__close { top: 14px; right: 14px; width: 40px; height: 40px; font-size: 20px; }
  .book-gallery__lightbox { padding: 24px; }
  .book-gallery__lightbox-nav { width: 44px; height: 44px; font-size: 24px; }
  .book-gallery__lightbox-nav--prev { left: 8px; }
  .book-gallery__lightbox-nav--next { right: 8px; }

  .eval-card { padding: 26px 22px 22px; }
  .eval-modal__inner { padding: 56px 22px 60px; }
  .eval-modal__close { top: 14px; right: 14px; width: 40px; height: 40px; font-size: 20px; }

  .footer__inner { flex-direction: column; text-align: center; }
}

@media (max-width: 900px) {
  .book__body { column-count: 1; column-rule: none; }
  .book-modal { padding: 20px 12px; }
  .book-modal__inner { padding: 60px 24px 70px; }
  .book__header { margin-bottom: 40px; padding-bottom: 28px; }
  .book__chapter-title { margin: 36px 0 24px; }
  .book__chapter-title + p::first-letter,
  .book__chapter-title + .book__chapter-flow .book__chapter-flow__col:first-child > p:first-child::first-letter { font-size: 3rem; }
  .book__chapter-flow { grid-template-columns: 1fr; gap: 18px 0; }
  .book__chapter-flow::before { display: none; }
  .book-modal__close { top: 14px; right: 14px; width: 40px; height: 40px; font-size: 20px; }
  .selfeval__deeper { padding: 36px 24px; margin-top: 60px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .reveal { opacity: 1; transform: none; }
  .book-modal, .book-modal__inner { transition: none; }
}

