/* Home only — editorial / gallery feel around portrait hero */

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.home-artistic {
  position: relative;
}

.home-hero {
  position: relative;
  overflow: hidden;
  isolation: isolate;
}

.home-hero--cover {
  min-height: calc(100svh - 74px);
  display: grid;
  place-items: end start;
}

.home-cover,
.home-cover__ink,
.home-cover__grain {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.home-cover {
  background-image: url("/images/gaston.png");
  background-size: cover;
  background-position: 55% 22%;
  filter: grayscale(1) contrast(1.18) brightness(0.9);
  transform: scale(1.08);
  opacity: 0.82;
}

@media (prefers-reduced-motion: no-preference) {
  @keyframes homeCoverKenBurns {
    0%,
    100% {
      transform: scale(1.08) translate(0, 0);
    }
    50% {
      transform: scale(1.11) translate(-0.8%, 0.4%);
    }
  }

  .home-cover {
    animation: homeCoverKenBurns 26s ease-in-out infinite alternate;
  }
}

/* ink wash + magazine gradients */
.home-cover__ink {
  background:
    radial-gradient(1200px 700px at 22% 28%, rgba(214, 180, 106, 0.18), transparent 55%),
    radial-gradient(900px 640px at 85% 12%, rgba(255, 255, 255, 0.10), transparent 55%),
    linear-gradient(90deg, rgba(7, 7, 9, 0.92) 0%, rgba(7, 7, 9, 0.62) 40%, rgba(7, 7, 9, 0.2) 72%, rgba(7, 7, 9, 0.85) 100%),
    linear-gradient(180deg, rgba(7, 7, 9, 0.25) 0%, rgba(7, 7, 9, 0.8) 78%, rgba(7, 7, 9, 0.94) 100%);
  mix-blend-mode: multiply;
}

/* halftone + grain */
.home-cover__grain {
  opacity: 0.14;
  mix-blend-mode: overlay;
  background-image:
    radial-gradient(circle at 1px 1px, rgba(255,255,255,0.14) 1px, transparent 0);
  background-size: 5px 5px;
}

.home-coverInner {
  position: relative;
  z-index: 2;
  width: min(960px, 92vw);
  padding: 22svh 0 max(28px, env(safe-area-inset-bottom, 0px)) 0;
  margin: 0 auto;
}

.home-coverTitle {
  margin: 0;
}

.home-hero__bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 90% 70% at 70% 20%, rgba(214, 180, 106, 0.07), transparent 55%),
    radial-gradient(ellipse 60% 50% at 10% 80%, rgba(255, 255, 255, 0.04), transparent 50%),
    #070709;
  pointer-events: none;
}

.home-hero__grain {
  position: absolute;
  inset: 0;
  opacity: 0.06;
  mix-blend-mode: overlay;
  pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

.home-hero__rule {
  display: none;
}

@media (min-width: 1024px) {
  .home-hero__rule {
    display: block;
    position: absolute;
    left: max(24px, calc(50vw - 700px));
    top: 18%;
    bottom: 18%;
    width: 1px;
    background: linear-gradient(180deg, transparent, rgba(214, 180, 106, 0.35) 20%, rgba(214, 180, 106, 0.35) 80%, transparent);
    pointer-events: none;
    z-index: 0;
  }
}

.home-kicker {
  font-size: 10px;
  letter-spacing: 0.42em;
  text-transform: uppercase;
  color: rgba(200, 193, 182, 0.85);
  margin: 0 0 1.25rem;
}

.home-hero__name {
  font-family: "Playfair Display", ui-serif, Georgia, serif;
  font-size: clamp(2.75rem, 6vw, 4.75rem);
  font-weight: 400;
  line-height: 0.95;
  letter-spacing: -0.02em;
  margin: 0;
}

.home-hero__name--accent {
  font-family: "Playfair Display", ui-serif, Georgia, serif;
  font-size: clamp(2.5rem, 5.5vw, 4.25rem);
  font-weight: 300;
  font-style: italic;
  line-height: 1.05;
  letter-spacing: 0.02em;
  margin: 0.15em 0 0;
  color: rgba(243, 240, 234, 0.82);
}

.home-tagline {
  font-family: "Playfair Display", ui-serif, Georgia, serif;
  font-size: clamp(1.05rem, 2vw, 1.35rem);
  font-weight: 400;
  font-style: italic;
  line-height: 1.45;
  color: rgba(200, 193, 182, 0.92);
  max-width: 28ch;
  margin: 1.75rem 0 0;
}

.home-nav-links {
  margin-top: 2.25rem;
  display: flex;
  flex-wrap: wrap;
  gap: 12px 22px;
  font-size: 10px;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: rgba(200, 193, 182, 0.88);
}

.home-nav-links a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  border-bottom: 1px solid rgba(243, 240, 234, 0.18);
  padding-bottom: 6px;
}

.home-nav-links a:hover {
  border-bottom-color: rgba(214, 180, 106, 0.75);
}

.home-nav-links a.isPrimary {
  color: rgba(243, 240, 234, 0.98);
  border-bottom-color: rgba(214, 180, 106, 0.55);
}

.home-quote-section {
  position: relative;
  border-top: 1px solid rgba(243, 240, 234, 0.08);
  background: linear-gradient(180deg, rgba(15, 15, 20, 0.35), transparent);
}

.home-quote-inner {
  text-align: center;
}

.home-quote-text {
  position: relative;
  text-wrap: balance;
}

.home-quote-text::before,
.home-quote-text::after {
  position: absolute;
  top: -0.42em;
  font-family: "Playfair Display", ui-serif, Georgia, serif;
  font-size: 1.85em;
  font-style: italic;
  color: rgba(214, 180, 106, 0.28);
  opacity: 0.9;
  pointer-events: none;
}

.home-quote-text::before {
  content: "“";
  left: -0.55em;
}

.home-quote-text::after {
  content: "”";
  right: -0.55em;
}

.home-quote-section::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 3px;
  background: linear-gradient(180deg, rgba(214, 180, 106, 0.15), rgba(214, 180, 106, 0.55), rgba(214, 180, 106, 0.15));
  opacity: 0.85;
}

@media (min-width: 768px) {
  .home-quote-section::before {
    left: max(0px, calc(50vw - 28rem));
  }
}

.home-works-label {
  font-family: "Playfair Display", ui-serif, Georgia, serif;
  font-size: clamp(1.75rem, 3vw, 2.35rem);
  font-weight: 400;
  letter-spacing: 0.02em;
  margin: 0;
}

.home-works-num {
  font-family: Inter, ui-sans-serif, system-ui, sans-serif;
  font-size: 10px;
  letter-spacing: 0.35em;
  color: rgba(214, 180, 106, 0.75);
  margin: 0 0 0.5rem;
}

/* Secondary “hero” — interiorismo (split band, not magazine cover) */
.home-inter-hero__wash {
  background:
    linear-gradient(180deg, rgba(7, 7, 9, 0.12) 0%, rgba(7, 7, 9, 0.45) 100%),
    linear-gradient(90deg, rgba(7, 7, 9, 0.55) 0%, transparent 42%);
  mix-blend-mode: multiply;
}

.home-latest-grid .card {
  grid-column: auto !important;
}

.home-inter-hero__thumbs {
  display: flex;
  gap: 10px;
  align-items: center;
  flex-wrap: nowrap;
}

.home-inter-hero__thumb {
  width: 64px;
  height: 44px;
  object-fit: cover;
  border-radius: 10px;
  border: 1px solid rgba(243, 240, 234, 0.14);
  opacity: 0.92;
  filter: saturate(0.95) contrast(1.05);
}

.home-inter-hero:hover .home-inter-hero__thumb {
  opacity: 0.98;
}

@media (min-width: 768px) {
  .home-inter-hero__wash {
    background:
      linear-gradient(180deg, rgba(7, 7, 9, 0.08) 0%, rgba(7, 7, 9, 0.35) 100%),
      linear-gradient(270deg, rgba(7, 7, 9, 0.2) 0%, transparent 38%);
  }
}

/* ——— Mobile / narrow screens ——— */
@media (max-width: 1023px) {
  .home-hero--cover {
    min-height: calc(100svh - 108px);
  }

  .home-cover {
    background-position: 55% 14%;
    transform: scale(1.18);
    opacity: 0.78;
  }

  .home-cover__grain {
    opacity: 0.1;
    background-size: 6px 6px;
  }

  .home-coverInner {
    width: min(720px, 92vw);
    padding-top: 18svh;
  }

  .home-portrait-frame::before {
    inset: -5%;
  }

  .home-portrait-inner {
    box-shadow:
      0 28px 72px rgba(0, 0, 0, 0.55),
      inset 0 1px 0 rgba(255, 255, 255, 0.06);
  }

  .home-kicker {
    letter-spacing: 0.3em;
    font-size: 9px;
    margin-bottom: 1rem;
  }

  .home-hero__name {
    font-size: clamp(2.35rem, 10.5vw, 3.4rem);
  }

  .home-hero__name--accent {
    font-size: clamp(2.05rem, 9.5vw, 3rem);
  }

  .home-tagline {
    max-width: none;
    margin-top: 1.25rem;
    font-size: clamp(1rem, 4.2vw, 1.2rem);
  }
}

@media (max-width: 639px) {
  .home-cover__ink {
    background:
      radial-gradient(900px 520px at 28% 22%, rgba(214, 180, 106, 0.16), transparent 58%),
      linear-gradient(180deg, rgba(7, 7, 9, 0.22) 0%, rgba(7, 7, 9, 0.82) 72%, rgba(7, 7, 9, 0.96) 100%),
      linear-gradient(90deg, rgba(7, 7, 9, 0.92) 0%, rgba(7, 7, 9, 0.55) 55%, rgba(7, 7, 9, 0.86) 100%);
  }

  .home-coverInner {
    padding-top: 22svh;
  }

  .home-quote-section::before {
    width: 0;
    opacity: 0;
  }

  .home-quote-inner {
    padding-left: 1rem !important;
    padding-right: 1rem !important;
    padding-top: 3.5rem;
    padding-bottom: 3.5rem;
  }

  .home-quote-text::before {
    left: -0.25em;
  }
  .home-quote-text::after {
    right: -0.25em;
  }

  .home-nav-links {
    gap: 10px 18px;
    margin-top: 1.75rem;
  }
}

/* ——— Interiorismo / Interiors — cover hero (misma familia visual que la home) ——— */
.interiorMain {
  position: relative;
}

.interiorCoverHero {
  position: relative;
  overflow: hidden;
  isolation: isolate;
}

.interiorCoverHero--cover {
  min-height: calc(100svh - 74px);
  display: grid;
  place-items: end start;
}

/* Fundido inferior: une el hero con el cuerpo sin corte duro */
.interiorCoverHero::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: min(28vh, 200px);
  z-index: 1;
  pointer-events: none;
  background: linear-gradient(
    to top,
    #070709 0%,
    rgba(7, 7, 9, 0.72) 38%,
    transparent 100%
  );
}

.interiorCoverHero__bg,
.interiorCoverHero__ink,
.interiorCoverHero__grain {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.interiorCoverHero__bg {
  background-image: url("/images/inter/head.jpg");
  background-size: cover;
  background-position: 50% 38%;
  filter: grayscale(1) contrast(1.12) brightness(0.84);
  transform: scale(1.07);
  opacity: 0.82;
}

.interiorCoverHero__ink {
  background:
    radial-gradient(1000px 580px at 16% 30%, rgba(214, 180, 106, 0.14), transparent 58%),
    radial-gradient(760px 480px at 90% 16%, rgba(255, 255, 255, 0.07), transparent 56%),
    linear-gradient(90deg, rgba(7, 7, 9, 0.93) 0%, rgba(7, 7, 9, 0.52) 44%, rgba(7, 7, 9, 0.22) 70%, rgba(7, 7, 9, 0.82) 100%),
    linear-gradient(180deg, rgba(7, 7, 9, 0.12) 0%, rgba(7, 7, 9, 0.72) 72%, rgba(7, 7, 9, 0.94) 100%);
  mix-blend-mode: multiply;
}

.interiorCoverHero__grain {
  opacity: 0.11;
  mix-blend-mode: overlay;
  background-image: radial-gradient(circle at 1px 1px, rgba(255, 255, 255, 0.11) 1px, transparent 0);
  background-size: 5px 5px;
}

.interiorCoverHero__inner {
  position: relative;
  z-index: 2;
  width: min(960px, 92vw);
  margin: 0 auto;
  padding: 20svh max(0px, env(safe-area-inset-right, 0px)) max(32px, env(safe-area-inset-bottom, 0px)) max(0px, env(safe-area-inset-left, 0px));
}

.interiorCoverHero .home-kicker {
  text-shadow: 0 1px 24px rgba(0, 0, 0, 0.65);
}

.interiorCoverHero .home-hero__name,
.interiorCoverHero .home-hero__name--accent {
  text-shadow: 0 2px 48px rgba(0, 0, 0, 0.55);
}

.interiorCoverHero .home-tagline {
  text-wrap: balance;
  max-width: 34ch;
  text-shadow: 0 1px 28px rgba(0, 0, 0, 0.6);
}

.interiorCoverHero .home-nav-links a {
  text-shadow: 0 1px 20px rgba(0, 0, 0, 0.75);
}

.interiorCoverHero__accent {
  display: block;
}

.interiorCoverHero__nav {
  margin-top: 2rem;
}

#interior-proyectos {
  scroll-margin-top: 96px;
}

/* ——— Sobre mí / About — cover hero (misma familia visual que la home) ——— */
.aboutMain {
  position: relative;
}

.aboutCoverHero {
  position: relative;
  overflow: hidden;
  isolation: isolate;
}

.aboutCoverHero--cover {
  min-height: calc(100svh - 74px);
  display: grid;
  place-items: end start;
}

.aboutCoverHero::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: min(28vh, 200px);
  z-index: 1;
  pointer-events: none;
  background: linear-gradient(
    to top,
    #070709 0%,
    rgba(7, 7, 9, 0.72) 38%,
    transparent 100%
  );
}

.aboutCoverHero__bg,
.aboutCoverHero__ink,
.aboutCoverHero__grain {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.aboutCoverHero__bg {
  background-image: url("/images/gas4.jpg");
  background-size: cover;
  background-position: 50% 22%;
  filter: grayscale(1) contrast(1.12) brightness(0.84);
  transform: scale(1.07);
  opacity: 0.82;
}

.aboutCoverHero__ink {
  background:
    radial-gradient(1000px 580px at 16% 30%, rgba(214, 180, 106, 0.14), transparent 58%),
    radial-gradient(760px 480px at 90% 16%, rgba(255, 255, 255, 0.07), transparent 56%),
    linear-gradient(90deg, rgba(7, 7, 9, 0.93) 0%, rgba(7, 7, 9, 0.52) 44%, rgba(7, 7, 9, 0.22) 70%, rgba(7, 7, 9, 0.82) 100%),
    linear-gradient(180deg, rgba(7, 7, 9, 0.12) 0%, rgba(7, 7, 9, 0.72) 72%, rgba(7, 7, 9, 0.94) 100%);
  mix-blend-mode: multiply;
}

.aboutCoverHero__grain {
  opacity: 0.11;
  mix-blend-mode: overlay;
  background-image: radial-gradient(circle at 1px 1px, rgba(255, 255, 255, 0.11) 1px, transparent 0);
  background-size: 5px 5px;
}

.aboutCoverHero__inner {
  position: relative;
  z-index: 2;
  width: min(960px, 92vw);
  margin: 0 auto;
  padding: 20svh max(0px, env(safe-area-inset-right, 0px)) max(32px, env(safe-area-inset-bottom, 0px)) max(0px, env(safe-area-inset-left, 0px));
}

.aboutCoverHero .home-kicker {
  text-shadow: 0 1px 24px rgba(0, 0, 0, 0.65);
}

.aboutCoverHero .home-hero__name,
.aboutCoverHero .home-hero__name--accent {
  text-shadow: 0 2px 48px rgba(0, 0, 0, 0.55);
}

.aboutCoverHero .home-tagline {
  text-wrap: balance;
  max-width: 34ch;
  text-shadow: 0 1px 28px rgba(0, 0, 0, 0.6);
}

.aboutCoverHero .home-nav-links a {
  text-shadow: 0 1px 20px rgba(0, 0, 0, 0.75);
}

.aboutCoverHero__accent {
  display: block;
}

.aboutCoverHero__nav {
  margin-top: 2rem;
}

#about-bio {
  scroll-margin-top: 96px;
}

@media (max-width: 1023px) {
  .aboutCoverHero--cover {
    min-height: calc(100svh - 108px);
  }

  .aboutCoverHero__bg {
    background-position: 50% 16%;
    transform: scale(1.14);
    opacity: 0.76;
  }

  .aboutCoverHero__grain {
    opacity: 0.09;
    background-size: 6px 6px;
  }

  .aboutCoverHero__inner {
    width: min(720px, 92vw);
    padding-top: 16svh;
    padding-left: max(0px, env(safe-area-inset-left, 0px));
    padding-right: max(0px, env(safe-area-inset-right, 0px));
  }

  #about-bio {
    scroll-margin-top: 112px;
  }
}

@media (max-width: 639px) {
  .aboutCoverHero__ink {
    background:
      radial-gradient(880px 500px at 30% 24%, rgba(214, 180, 106, 0.14), transparent 58%),
      linear-gradient(180deg, rgba(7, 7, 9, 0.22) 0%, rgba(7, 7, 9, 0.82) 72%, rgba(7, 7, 9, 0.96) 100%),
      linear-gradient(90deg, rgba(7, 7, 9, 0.92) 0%, rgba(7, 7, 9, 0.52) 55%, rgba(7, 7, 9, 0.86) 100%);
  }
}

/* ——— Generic page cover hero (Obras / Galerías / Prensa / Contacto / etc.) ——— */
.pageCoverMain {
  position: relative;
}

.pageCoverHero {
  position: relative;
  overflow: hidden;
  isolation: isolate;
}

.pageCoverHero--cover {
  min-height: calc(86svh - 74px);
  display: grid;
  place-items: end start;
}

.pageCoverHero::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: min(28vh, 200px);
  z-index: 1;
  pointer-events: none;
  background: linear-gradient(to top, #070709 0%, rgba(7, 7, 9, 0.72) 38%, transparent 100%);
}

.pageCoverHero__bg,
.pageCoverHero__ink,
.pageCoverHero__grain {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.pageCoverHero__bg {
  background-image: var(--cover-image, url("/images/gaston.png"));
  background-size: cover;
  background-position: var(--cover-pos, 50% 28%);
  filter: grayscale(1) contrast(1.12) brightness(0.84);
  transform: scale(1.07);
  opacity: 0.82;
}

.pageCoverHero__ink {
  background:
    radial-gradient(1000px 580px at 16% 30%, rgba(214, 180, 106, 0.14), transparent 58%),
    radial-gradient(760px 480px at 90% 16%, rgba(255, 255, 255, 0.07), transparent 56%),
    linear-gradient(90deg, rgba(7, 7, 9, 0.93) 0%, rgba(7, 7, 9, 0.52) 44%, rgba(7, 7, 9, 0.22) 70%, rgba(7, 7, 9, 0.82) 100%),
    linear-gradient(180deg, rgba(7, 7, 9, 0.12) 0%, rgba(7, 7, 9, 0.72) 72%, rgba(7, 7, 9, 0.94) 100%);
  mix-blend-mode: multiply;
}

.pageCoverHero__grain {
  opacity: 0.11;
  mix-blend-mode: overlay;
  background-image: radial-gradient(circle at 1px 1px, rgba(255, 255, 255, 0.11) 1px, transparent 0);
  background-size: 5px 5px;
}

.pageCoverHero__inner {
  position: relative;
  z-index: 2;
  width: min(960px, 92vw);
  margin: 0 auto;
  padding: 18svh max(0px, env(safe-area-inset-right, 0px)) max(32px, env(safe-area-inset-bottom, 0px)) max(0px, env(safe-area-inset-left, 0px));
}

.pageCoverHero .home-kicker,
.pageCoverHero .home-hero__name,
.pageCoverHero .home-hero__name--accent,
.pageCoverHero .home-tagline,
.pageCoverHero .home-nav-links a {
  text-shadow: 0 1px 28px rgba(0, 0, 0, 0.7);
}

.pageCoverHero .home-tagline {
  text-wrap: balance;
  max-width: 34ch;
}

@media (max-width: 1023px) {
  .pageCoverHero--cover {
    min-height: calc(86svh - 108px);
  }
  .pageCoverHero__bg {
    transform: scale(1.14);
    opacity: 0.76;
  }
  .pageCoverHero__grain {
    opacity: 0.09;
    background-size: 6px 6px;
  }
  .pageCoverHero__inner {
    width: min(720px, 92vw);
    padding-top: 14svh;
    padding-left: max(0px, env(safe-area-inset-left, 0px));
    padding-right: max(0px, env(safe-area-inset-right, 0px));
  }
}


@media (max-width: 1023px) {
  .interiorCoverHero--cover {
    min-height: calc(100svh - 108px);
  }

  .interiorCoverHero__bg {
    background-position: 50% 28%;
    transform: scale(1.14);
    opacity: 0.76;
  }

  .interiorCoverHero__grain {
    opacity: 0.09;
    background-size: 6px 6px;
  }

  .interiorCoverHero__inner {
    width: min(720px, 92vw);
    padding-top: 16svh;
    padding-left: max(0px, env(safe-area-inset-left, 0px));
    padding-right: max(0px, env(safe-area-inset-right, 0px));
  }

  #interior-proyectos {
    scroll-margin-top: 112px;
  }
}

@media (max-width: 639px) {
  .interiorCoverHero__ink {
    background:
      radial-gradient(880px 500px at 30% 24%, rgba(214, 180, 106, 0.14), transparent 58%),
      linear-gradient(180deg, rgba(7, 7, 9, 0.22) 0%, rgba(7, 7, 9, 0.82) 72%, rgba(7, 7, 9, 0.96) 100%),
      linear-gradient(90deg, rgba(7, 7, 9, 0.92) 0%, rgba(7, 7, 9, 0.52) 55%, rgba(7, 7, 9, 0.86) 100%);
  }

  .interiorCoverHero__inner {
    padding-top: 20svh;
  }

  .interiorCoverHero__nav.home-nav-links {
    gap: 10px 18px;
    margin-top: 1.75rem;
  }
}
